Skip to content

Commit

Permalink
Fix: abort world generation on exiting the game as soon as possible
Browse files Browse the repository at this point in the history
This prevents the window from "freezing" when you close it during
world generation, as it first would continue the action.
  • Loading branch information
TrueBrain committed Mar 9, 2021
1 parent 9b21e83 commit 655898e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/genworld.cpp
Expand Up @@ -243,7 +243,7 @@ void AbortGeneratingWorld()
*/
bool IsGeneratingWorldAborted()
{
return _gw.abort;
return _gw.abort || _exit_game;
}

/**
Expand Down

0 comments on commit 655898e

Please sign in to comment.