From afadae6d5068d39e1e4bb12b9d7f7a1632a0638f Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Tue, 9 Mar 2021 17:04:26 +0100 Subject: [PATCH] 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. --- src/genworld.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/genworld.cpp b/src/genworld.cpp index 03fa08819b..3dd8d7f455 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; } /**