From dcaedd289a971889a766f3bb79a71c80674411ef Mon Sep 17 00:00:00 2001 From: aronson Date: Fri, 28 Jul 2023 22:13:58 -0500 Subject: [PATCH] Disable map export to prevent game hanging --- src/SDL12_compat.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c index 335326335..b66c7d67d 100644 --- a/src/SDL12_compat.c +++ b/src/SDL12_compat.c @@ -6353,6 +6353,11 @@ SaveDestAlpha(SDL12_Surface *src12, SDL12_Surface *dst12, SDL_Rect *dstrect20, U * * In SDL2, we change the destination alpha. We have to save it off in this case, which sucks. */ + + // Disable this to prevent map export locking the game for many minutes + *retval = NULL; + return 0; + Uint8 *dstalpha = NULL; const SDL_bool save_dstalpha = (PreserveDestinationAlpha && (src12->flags & SDL12_SRCALPHA) && dst12->format->Amask && ((src12->format->alpha != 255) || src12->format->Amask)) ? SDL_TRUE : SDL_FALSE;