ruby: allow Civzone constants in building_alloc

develop
jj 2012-09-19 19:19:58 +02:00
parent 27fd3f5fc7
commit b6d9863172
1 changed files with 1 additions and 0 deletions

@ -48,6 +48,7 @@ module DFHack
bld.race = ui.race_id
subtype = WorkshopType.int(subtype) if subtype.kind_of?(::Symbol) and type == :Workshop
subtype = FurnaceType.int(subtype) if subtype.kind_of?(::Symbol) and type == :Furnace
subtype = CivzoneType.int(subtype) if subtype.kind_of?(::Symbol) and type == :Civzone
bld.setSubtype(subtype)
bld.setCustomType(custom)
case type