Changed spectate auto-disengage to only trigger when unpaused

develop
Josh Cooper 2022-10-12 14:39:49 -07:00
parent d675288969
commit cd4c6489dc
1 changed files with 1 additions and 1 deletions

@ -168,7 +168,7 @@ DFhackCExport command_result plugin_onupdate(color_ostream &out) {
// dismiss announcement popup(s) // dismiss announcement popup(s)
Gui::getCurViewscreen(true)->feed_key(interface_key::CLOSE_MEGA_ANNOUNCEMENT); Gui::getCurViewscreen(true)->feed_key(interface_key::CLOSE_MEGA_ANNOUNCEMENT);
} }
if (disengage_enabled) { if (disengage_enabled && !World::ReadPauseState()) {
if (our_dorf && our_dorf->id != df::global::ui->follow_unit) { if (our_dorf && our_dorf->id != df::global::ui->follow_unit) {
plugin_enable(out, false); plugin_enable(out, false);
} }