Only initialize siege engine in dwarf mode.

develop
Alexander Gavrilov 2012-09-19 19:52:57 +04:00
parent b5ede66224
commit a80f574be8
1 changed files with 1 additions and 0 deletions

@ -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();