Track structures, fix trivial problem in zone plugin

develop
Petr Mrázek 2012-04-15 00:35:59 +02:00
parent 45ca8c6ac1
commit fa063e2936
2 changed files with 3 additions and 1 deletions

@ -1 +1 @@
Subproject commit 27fec9797d7d1215bd3f5530b44a55a9d394fe75
Subproject commit a545167050fee9eedd5e319b518d961f933154a3

@ -890,6 +890,8 @@ df::general_ref_building_civzone_assignedst * createCivzoneRef()
return newref;
}
bool isInBuiltCage(df::unit* unit);
// check if assigned to pen, pit, (built) cage or chain
// note: BUILDING_CAGED is not set for animals (maybe it's used for dwarves who get caged as sentence)
// animals in cages (no matter if built or on stockpile) get the ref CONTAINED_IN_ITEM instead