Make fpause pause worldgen

Closes #1256
develop
lethosor 2018-05-05 16:08:06 -04:00
parent b0c007cae6
commit b266c7322f
1 changed files with 5 additions and 0 deletions

@ -69,6 +69,7 @@ using namespace DFHack;
#include "df/viewscreen_dwarfmodest.h" #include "df/viewscreen_dwarfmodest.h"
#include "df/viewscreen_game_cleanerst.h" #include "df/viewscreen_game_cleanerst.h"
#include "df/viewscreen_loadgamest.h" #include "df/viewscreen_loadgamest.h"
#include "df/viewscreen_new_regionst.h"
#include "df/viewscreen_savegamest.h" #include "df/viewscreen_savegamest.h"
#include <df/graphic.h> #include <df/graphic.h>
@ -1149,6 +1150,10 @@ command_result Core::runCommand(color_ostream &con, const std::string &first_, v
else if (builtin == "fpause") else if (builtin == "fpause")
{ {
World::SetPauseState(true); World::SetPauseState(true);
if (auto scr = Gui::getViewscreenByType<df::viewscreen_new_regionst>())
{
scr->worldgen_paused = true;
}
con.print("The game was forced to pause!\n"); con.print("The game was forced to pause!\n");
} }
else if (builtin == "cls") else if (builtin == "cls")