From cd4c6489dcf9399182080e3b8f7696e0950a2618 Mon Sep 17 00:00:00 2001 From: Josh Cooper Date: Wed, 12 Oct 2022 14:39:49 -0700 Subject: [PATCH] Changed spectate auto-disengage to only trigger when unpaused --- plugins/spectate/spectate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/spectate/spectate.cpp b/plugins/spectate/spectate.cpp index fc305d33e..1148e26a4 100644 --- a/plugins/spectate/spectate.cpp +++ b/plugins/spectate/spectate.cpp @@ -168,7 +168,7 @@ DFhackCExport command_result plugin_onupdate(color_ostream &out) { // dismiss announcement popup(s) 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) { plugin_enable(out, false); }