Commit Graph

1005 Commits

Author SHA1 Message Date
Eugene Sandulenko
edc68ef7b1 HDB: Added more constants instead of magic numbers 2019-09-03 17:17:25 +02:00
Eugene Sandulenko
f9422e4347 HDB: Fix another incorrect allocation/deallocation.
This leads to double free, because gfxList contains list to pointers to gfxCache,
which is managed by the Gfx code
2019-09-03 17:17:24 +02:00
Eugene Sandulenko
b96049a236 HDB: Fix game restarting 2019-09-03 17:17:24 +02:00
Eugene Sandulenko
7b07d2f88c HDB: Hid some debug messages to deeper level 2019-09-03 17:17:24 +02:00
Eugene Sandulenko
cecf6e5fc8 HDB: Fix progress bar rendering 2019-09-03 17:17:24 +02:00
Eugene Sandulenko
c10fee7393 HDB: More Lua script patches to MAP30.LUA 2019-09-03 17:17:24 +02:00
Eugene Sandulenko
22a9c9ef5c HDB: Added line references to the script patches 2019-09-03 17:17:24 +02:00
Eugene Sandulenko
442835b555 HDB: Added script patch from MAP21.LUA 2019-09-03 17:17:24 +02:00
Nipun Garg
ada43165a1 HDB: Animate Bridges 2019-09-03 17:17:24 +02:00
Nipun Garg
f02bc1da84 HDB: Add Lua Patch for Map11 2019-09-03 17:17:24 +02:00
Eugene Sandulenko
c10034df93 HDB: Fix warning 2019-09-03 17:17:24 +02:00
Nipun Garg
6d3856cd94 HDB: Add Patches for Map10 2019-09-03 17:17:24 +02:00
Nipun Garg
9d45057630 HDB: Add Debug Output for Actions List 2019-09-03 17:17:24 +02:00
Nipun Garg
31ec40a91a HDB: Fix checkActionList() 2019-09-03 17:17:24 +02:00
Nipun Garg
1b6b2a96a0 HDB: Fix warnings 2019-09-03 17:17:24 +02:00
Nipun Garg
9e1f792751 HDB: Differentiate Debug messages 2019-09-03 17:17:24 +02:00
Nipun Garg
72dbb6074d HDB: Fix uninitialized read 2019-09-03 17:17:24 +02:00
Nipun Garg
8a80cc77e9 HDB: Add warnings 2019-09-03 17:17:24 +02:00
Eugene Sandulenko
927770f34b HDB: Initialise class variables 2019-09-03 17:17:23 +02:00
Eugene Sandulenko
cea2285db1 HDB: Remove redundant frees
ManagedSurface takes care of freeing itself
2019-09-03 17:17:23 +02:00
Eugene Sandulenko
bba1fa849b HDB: Fix loading 2019-09-03 17:17:23 +02:00
Nipun Garg
ae1f4efeb5 HDB: Fix memory leaks in Menu 2019-09-03 17:17:23 +02:00
Nipun Garg
62a33b1399 HDB: Delete all _tTileLookupArray values at once 2019-09-03 17:17:23 +02:00
Nipun Garg
d0248243d2 HDB: Refactor getPicGfx(), getTileGfx() and fix...
... memory leaks
2019-09-03 17:17:23 +02:00
Nipun Garg
ecefec2f77 HDB: Add _animTiles to fix memory leaks 2019-09-03 17:17:23 +02:00
Nipun Garg
a8d277be18 HDB: Fix delete command for _dir 2019-09-03 17:17:23 +02:00
Nipun Garg
05cb55b888 HDB: Delete Cached gfx data in one place 2019-09-03 17:17:23 +02:00
Nipun Garg
fd91bb7f59 HDB: Fix more memory leaks 2019-09-03 17:17:23 +02:00
Nipun Garg
8d9004e432 HDB: Fix memory leaks when stream is returned NULL 2019-09-03 17:17:23 +02:00
Nipun Garg
ea77240d4e HDB: Fix memory leak due to removed animTargets 2019-09-03 17:17:23 +02:00
Nipun Garg
5363b38fe5 HDB: Delete Player Graphics in destructor 2019-09-03 17:17:23 +02:00
Nipun Garg
fa71ee9034 HDB: Fix memory leaks due to findFirstData() 2019-09-03 17:17:23 +02:00
Eugene Sandulenko
7b78aa5e9f HDB: Fix double free() and meaningless 'new' allocations 2019-09-03 17:17:23 +02:00
Nipun Garg
161f9e6707 HDB: NULL each tile after calling destructor 2019-09-03 17:17:23 +02:00
Nipun Garg
e9e654d7db HDB: Convert _surface from struct to pointer 2019-09-03 17:17:22 +02:00
Nipun Garg
adb43a79b7 HDB: Fix memory leaks in AI lists 2019-09-03 17:17:22 +02:00
Nipun Garg
7709b2828b HDB: Fix memory leaks with FileMan::findFiles() 2019-09-03 17:17:22 +02:00
Nipun Garg
b90f0e143f HDB: Remove redundant FileMan function 2019-09-03 17:17:22 +02:00
Nipun Garg
8825980e1f HDB: Remove redundant custom free() function 2019-09-03 17:17:22 +02:00
Nipun Garg
f5aff6c72d HDB: Fix memset() 2019-09-03 17:17:22 +02:00
Nipun Garg
d706fbf22e HDB: Fix memory leaks 2019-09-03 17:17:22 +02:00
Eugene Sandulenko
ff2c6fe30a HDB: More var initialisation 2019-09-03 17:17:22 +02:00
Nipun Garg
d3ad2ed14a HDB: Fix memory leak in Player Graphics 2019-09-03 17:17:22 +02:00
Eugene Sandulenko
0c71ae2121 HDB: Fix uninitialised variables 2019-09-03 17:17:22 +02:00
Nipun Garg
be1fcc2fa8 HDB: Fix GfxCache memory leak 2019-09-03 17:17:22 +02:00
Nipun Garg
14dbbdd852 HDB: Fix _fontSurfaces memory leak 2019-09-03 17:17:22 +02:00
Nipun Garg
ac61b7ef9c HDB: Fix warning 2019-09-03 17:17:22 +02:00
Eugene Sandulenko
d80023c737 HDB: Fix delete mismatch 2019-09-03 17:17:22 +02:00
Eugene Sandulenko
e74bdbf410 HDB: Fix uninitalised reads 2019-09-03 17:17:22 +02:00
Eugene Sandulenko
9ab298748e HDB: Fix flag checking across the engien 2019-09-03 17:17:22 +02:00