Make planned doors pet passable

develop
Anuradha Dissanayake 2013-04-01 19:52:34 +13:00
parent 1550df496f
commit 1070eec016
1 changed files with 8 additions and 0 deletions

@ -31,6 +31,7 @@
#include "df/buildings_other_id.h"
#include "modules/World.h"
#include "df/building.h"
#include "df/building_doorst.h"
using df::global::ui;
using df::global::ui_build_selector;
@ -757,6 +758,13 @@ public:
(*iter)->flags.bits.suspend = true;
}
if (type == building_type::Door)
{
auto door = virtual_cast<df::building_doorst>(newinst);
if (door)
door->door_flags.bits.pet_passable = true;
}
addPlannedBuilding(newinst);
return true;