diff options
author | Patric Stout <truebrain@openttd.org> | 2021-03-09 17:04:26 +0100 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-03-10 13:41:18 +0100 |
commit | afadae6d5068d39e1e4bb12b9d7f7a1632a0638f (patch) | |
tree | df61ce7450061e4193142e9dc3515a6994150a30 | |
parent | 5426cb3baf924f541bccf57aa97c6d4473546f09 (diff) | |
download | openttd-afadae6d5068d39e1e4bb12b9d7f7a1632a0638f.tar.xz |
Fix: abort world generation on exiting the game as soon as possible
This prevents the window from "freezing" when you close it during
world generation, as it first would continue the action.
-rw-r--r-- | src/genworld.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/genworld.cpp b/src/genworld.cpp index 03fa08819..3dd8d7f45 100644 --- a/src/genworld.cpp +++ b/src/genworld.cpp @@ -243,7 +243,7 @@ void AbortGeneratingWorld() */ bool IsGeneratingWorldAborted() { - return _gw.abort; + return _gw.abort || _exit_game; } /** |