From b266c7322f55c515f7b1fb3372956bfba1682abd Mon Sep 17 00:00:00 2001 From: lethosor Date: Sat, 5 May 2018 16:08:06 -0400 Subject: [PATCH] Make fpause pause worldgen Closes #1256 --- library/Core.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/Core.cpp b/library/Core.cpp index 58b3f85f5..49aa61ecd 100644 --- a/library/Core.cpp +++ b/library/Core.cpp @@ -69,6 +69,7 @@ using namespace DFHack; #include "df/viewscreen_dwarfmodest.h" #include "df/viewscreen_game_cleanerst.h" #include "df/viewscreen_loadgamest.h" +#include "df/viewscreen_new_regionst.h" #include "df/viewscreen_savegamest.h" #include @@ -1149,6 +1150,10 @@ command_result Core::runCommand(color_ostream &con, const std::string &first_, v else if (builtin == "fpause") { World::SetPauseState(true); + if (auto scr = Gui::getViewscreenByType()) + { + scr->worldgen_paused = true; + } con.print("The game was forced to pause!\n"); } else if (builtin == "cls")