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 Lua: Indent array values 2015-03-22 14:04:03 -04:00
binpatch.lua binpatch.lua: check for empty patches 2018-01-31 09:57:11 -05:00
class.lua Add a script to complement the weapon rack binary patch. 2012-10-27 20:16:27 +04:00
dfhack.lua allow custom filter in `dfhack.printall_recurse` 2020-02-23 16:57:57 +01:00
dumper.lua Fix whitespace issues 2015-02-14 22:53:06 -05:00
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 json: Improve IO-related error messages 2017-12-25 14:40:06 -05:00
makeown.lua fix of relations errors. 2017-04-24 07:07:08 -05:00
memscan.lua Add CheckedArray:__tostring() method 2016-08-22 23:18:30 -04:00
persist-table.lua persist-table bug. 2014-12-07 07:56:33 -05:00
profiler.lua Port profiler to lua 5.3 and dfhack 2018-06-06 19:18:18 +03:00
repeat-util.lua Make repeatUtil.cancel work even when called from the callback. Closes #1122. 2017-07-11 15:10:42 -05:00
syndrome-util.lua Added function to remove syndrome wound data 2018-04-20 17:14:03 +02:00
tile-material.lua Add a Lua module for getting a tile's material (#1031) 2016-12-27 16:49:46 -05:00
utils.lua Make utils.addressof() work for raw userdata 2020-11-19 21:32:42 -05:00