ruby: return selected zone in building_find

develop
jj 2012-09-20 19:57:43 +02:00
parent e154d5447b
commit b115edcf68
1 changed files with 2 additions and 0 deletions

@ -8,6 +8,8 @@ module DFHack
k.building if k.type == :Building
when :BuildingItems, :QueryBuilding
world.selected_building
when :Zones, :ZonesPenInfo, :ZonesPitInfo, :ZonesHospitalInfo
ui_sidebar_menus.zone.selected
end
elsif what.kind_of?(Integer)