From a80f574be8869cb8dc308ccb3da31257ad02e57c Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Wed, 19 Sep 2012 19:52:57 +0400 Subject: [PATCH] Only initialize siege engine in dwarf mode. --- plugins/siege-engine.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/siege-engine.cpp b/plugins/siege-engine.cpp index 3b95aba35..2e362afec 100644 --- a/plugins/siege-engine.cpp +++ b/plugins/siege-engine.cpp @@ -1821,6 +1821,7 @@ DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_chan { switch (event) { case SC_MAP_LOADED: + if (!gamemode || *gamemode == game_mode::DWARF) { auto pworld = Core::getInstance().getWorld(); bool enable = pworld->GetPersistentData("siege-engine/enabled").isValid();