Skip to content

Commit

Permalink
Disable map export to prevent game hanging
Browse files Browse the repository at this point in the history
  • Loading branch information
aronson committed Jul 29, 2023
1 parent 4d98aa5 commit dcaedd2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/SDL12_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit dcaedd2

Please sign in to comment.