dfhack/library/lua
myk002 3ba984c22c
only reset extents if they are unusable
this allows callers of Buildings::setSize() to "pre-initialize" the
extents to declare non-rectangular structures. this allows quickfort to
create non-rectangular stockpiles, farm plots, zones, etc. the extents
are still reset as before if the size of the building doesn't match the
caller's expectations.

this commit also fixes a memory leak when setSize() allocates memory for
extents, but the memory is not deallocated if the building is ultimately
invalid for some reason.
2020-12-16 11:10:47 -08:00
..
dfhack only reset extents if they are unusable 2020-12-16 11:10:47 -08:00
gui Change color of ListBox.select2_hint to grey to indicate enabled 2020-08-27 00:08:28 -04:00
json
binpatch.lua
class.lua
dfhack.lua
dumper.lua
gui.lua Update gui.Painter docs, add sections to dfhack.screen, add more links, etc 2020-09-23 22:00:39 -04:00
json.lua
makeown.lua
memscan.lua
persist-table.lua
profiler.lua
repeat-util.lua
syndrome-util.lua
tile-material.lua
utils.lua Make utils.addressof() work for raw userdata 2020-11-19 21:32:42 -05:00