dfhack/library
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
..
DataStaticsFields Split DataStaticsFields into multiple compilation units 2016-03-22 17:34:25 -04:00
include only reset extents if they are unusable 2020-12-16 11:10:47 -08:00
lua
modules only reset extents if they are unusable 2020-12-16 11:10:47 -08:00
proto Remove execute permission on files that are not executables. 2018-07-03 15:37:16 -05:00
xml@403722a6cb
.gitignore
CMakeLists.txt
ColorText.cpp
CompilerWorkAround.cpp
Console-posix.cpp
Console-windows.cpp Fix windows ReadConsoleInput return value check 2018-07-08 00:50:43 +03:00
Core.cpp
DFHackVersion.cpp
DataDefs.cpp
DataStatics.cpp don't crash if the path to an instance-vector contains a null pointer 2020-04-18 20:40:17 -05:00
DataStaticsCtor.cpp
DataStaticsFields.cpp
Debug.cpp
Error.cpp
Hooks-darwin.cpp
Hooks-egg.cpp
Hooks-linux.cpp
Hooks-windows.cpp
LuaApi.cpp Use initial working directory as process path on Linux, and expose to Lua 2020-11-12 19:07:51 -05:00
LuaTools.cpp
LuaTypes.cpp
LuaWrapper.cpp Add ref_target attribute to primitive field references 2020-04-09 00:02:07 -04:00
MiscUtils.cpp
PlugLoad-posix.cpp
PlugLoad-windows.cpp
PluginManager.cpp
PluginStatics.cpp
Process-darwin.cpp More usage of smart pointers throughout core and version info. 2018-07-14 19:55:25 -07:00
Process-linux.cpp Use initial working directory as process path on Linux, and expose to Lua 2020-11-12 19:07:51 -05:00
Process-windows.cpp
RemoteClient.cpp
RemoteServer.cpp
RemoteTools.cpp
TileTypes.cpp
Types.cpp
VTableInterpose.cpp
VersionInfoFactory.cpp
binpatch.cpp
dfhack-run.cpp
git-describe.cmake.in Followups for #1325 2018-07-17 00:58:49 -04:00