| 835 | } |
| 836 | |
| 837 | static bool checkBuildingTiles(df::building *bld, bool can_change, |
| 838 | bool force_extents = false) |
| 839 | { |
| 840 | auto psize = Buildings::getSize(bld); |
| 841 | |
| 842 | if (force_extents && !bld->room.extents) |
| 843 | { |
| 844 | // populate the room structure if it's not set already |
| 845 | init_extents(bld->room, psize.first, psize.second); |
| 846 | } |
| 847 | |
| 848 | return Buildings::checkFreeTiles(psize.first, psize.second, bld, |
| 849 | can_change && bld->isExtentShaped(), |
| 850 | !bld->isSettingOccupancy(), |
| 851 | bld->getType() == |
| 852 | df::building_type::Civzone, |
| 853 | !bld->isActual()); |
| 854 | } |
| 855 | |
| 856 | int Buildings::countExtentTiles(df::building *bld, int defval) |
| 857 | { |
no test coverage detected