summaryrefslogtreecommitdiff
path: root/src/genworld.cpp
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-03-09 17:04:26 +0100
committerPatric Stout <github@truebrain.nl>2021-03-10 13:41:18 +0100
commitafadae6d5068d39e1e4bb12b9d7f7a1632a0638f (patch)
treedf61ce7450061e4193142e9dc3515a6994150a30 /src/genworld.cpp
parent5426cb3baf924f541bccf57aa97c6d4473546f09 (diff)
downloadopenttd-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.
Diffstat (limited to 'src/genworld.cpp')
-rw-r--r--src/genworld.cpp2
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;
}
/**