Adds the pause.h World::Update() to onupdate, to keep settings locked

develop
Josh Cooper 2022-10-13 11:57:05 -07:00
parent 880e9b34ef
commit c9165f8999
1 changed files with 2 additions and 0 deletions

@ -149,6 +149,8 @@ DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_chan
} }
DFhackCExport command_result plugin_onupdate(color_ostream &out) { DFhackCExport command_result plugin_onupdate(color_ostream &out) {
// keeps announcement pause settings locked
World::Update(); // from pause.h
if (lock_collision) { if (lock_collision) {
if (unpause_enabled) { if (unpause_enabled) {
// player asked for auto-unpause enabled // player asked for auto-unpause enabled