ruby: fix building subtype/customtype init value

develop
jj 2012-09-14 21:39:31 +02:00
parent bb9be97070
commit eacca723e0
1 changed files with 2 additions and 2 deletions

@ -48,8 +48,8 @@ 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
bld.setSubtype(subtype) if subtype != -1
bld.setCustomType(custom) if custom != -1
bld.setSubtype(subtype)
bld.setCustomType(custom)
case type
when :Furnace; bld.melt_remainder[world.raws.inorganics.length] = 0
when :Coffin; bld.initBurialFlags