From b6d986317239b7eac27511d488d3954e924178d3 Mon Sep 17 00:00:00 2001 From: jj Date: Wed, 19 Sep 2012 19:19:58 +0200 Subject: [PATCH] ruby: allow Civzone constants in building_alloc --- plugins/ruby/building.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/ruby/building.rb b/plugins/ruby/building.rb index d88bbfc69..0a48386c5 100644 --- a/plugins/ruby/building.rb +++ b/plugins/ruby/building.rb @@ -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