summaryrefslogtreecommitdiff
path: root/plugins/siege-engine.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-09-19 19:52:57 +0400
committerAlexander Gavrilov2012-09-19 19:52:57 +0400
commita80f574be8869cb8dc308ccb3da31257ad02e57c (patch)
tree585864dec39c5704649d1149e37bab69206767ec /plugins/siege-engine.cpp
parentb5ede66224f2fe9d112bbcf3b748dfa5a0569ca7 (diff)
downloaddfhack-a80f574be8869cb8dc308ccb3da31257ad02e57c.tar.gz
dfhack-a80f574be8869cb8dc308ccb3da31257ad02e57c.tar.bz2
dfhack-a80f574be8869cb8dc308ccb3da31257ad02e57c.tar.xz
Only initialize siege engine in dwarf mode.
Diffstat (limited to 'plugins/siege-engine.cpp')
-rw-r--r--plugins/siege-engine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/siege-engine.cpp b/plugins/siege-engine.cpp
index 3b95aba3..2e362afe 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();