Merge remote-tracking branch 'myk002/myk_resume' into develop

develop
lethosor 2021-05-28 00:54:59 -04:00
commit 32d0d4209b
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
1 changed files with 6 additions and 0 deletions

@ -41,6 +41,7 @@ DFHACK_PLUGIN("resume");
#define PLUGIN_VERSION 0.2
REQUIRE_GLOBAL(gps);
REQUIRE_GLOBAL(process_jobs);
REQUIRE_GLOBAL(ui);
REQUIRE_GLOBAL(world);
@ -222,6 +223,11 @@ struct resume_hook : public df::viewscreen_dwarfmodest
if (enabled && DFHack::World::ReadPauseState() && ui->main.mode == ui_sidebar_mode::Default)
{
if (*process_jobs)
{
// something just created some buildings. rescan.
clear_scanned();
}
scan_for_suspended_buildings();
show_suspended_buildings();
}