dfhack/library/modules
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
..
Buildings.cpp only reset extents if they are unusable 2020-12-16 11:10:47 -08:00
Burrows.cpp Replace many includes with forward declarations in modules/Maps.h 2016-08-13 21:44:01 -04:00
Constructions.cpp Replace many includes with forward declarations in modules/Maps.h 2016-08-13 21:44:01 -04:00
Designations.cpp Update xml and all uses of job_handler 2017-11-25 00:59:59 -05:00
Engravings.cpp Update license, add contributors file, bump release number 2012-09-30 04:03:37 +02:00
EventManager.cpp Fix EventManager building ID type 2019-10-05 20:26:31 -04:00
Filesystem.cpp Use initial working directory as process path on Linux, and expose to Lua 2020-11-12 19:07:51 -05:00
Graphic.cpp simplify Graphic module. update structures. 2020-03-08 00:12:48 -06:00
Gui.cpp name ui_look_list union 2020-03-06 16:06:27 -06:00
Items.cpp cleaner mask-based implementation 2020-11-12 22:44:38 -08:00
Job.cpp revert skip_vector=true for now 2020-11-13 10:45:53 -08:00
Kitchen.cpp update for DFHack/df-structures#7dfea1f1d4e453b97d5529785701db46360596ce 2020-06-29 16:16:44 -05:00
MapCache.cpp update for DFHack/df-structures#7dfea1f1d4e453b97d5529785701db46360596ce 2020-06-29 16:16:44 -05:00
Maps.cpp a pox on whitespace 2018-09-11 18:41:32 -05:00
Materials.cpp undo unnecessary edits 2020-11-12 22:49:06 -08:00
Notes.cpp Update the module create calls to return unique_ptrs 2018-07-14 19:55:25 -07:00
Once.cpp New module: Once. Intended to help prevent debug error message spam. 2013-03-23 22:38:33 -04:00
Persistence.cpp update structures; fix some minor compile warnings 2020-02-05 12:35:43 -06:00
Random.cpp Add missing import/export info for MersenneRNG::unitvector<> 2014-03-25 13:30:21 -05:00
Renderer.cpp Add Renderer module - safer way to install custom renderers 2015-10-21 17:18:39 -04:00
Screen.cpp Add an identity to dfhack_viewscreen and dfhack_lua_viewscreen. 2018-07-22 17:31:39 -05:00
Translation.cpp update structures 2020-07-01 23:10:34 -05:00
Units.cpp Fix a couple warnings in the Units module (#1615) 2020-08-08 14:35:12 -04:00
Windows.cpp Update license, add contributors file, bump release number 2012-09-30 04:03:37 +02:00
World.cpp Add Persistence module. 2018-08-26 18:27:58 -05:00