Commit Graph
101 Commits
Author SHA1 Message Date
D G Turner cb949044db HDB: Refactor AI Functions to Avoid Incompatible Function Pointer Casts
These warnings were emitted by GCC when -Wcast-function-type was passed.

This fixes these by refactoring so the engine only uses a single function
pointer type with the "extra" parameters always present.
2022-07-23 17:00:23 +01:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
D G Turner 7da1bd1a80 HDB: Fix Two GCC Warnings When Building with C++-98 2021-08-07 20:22:37 +01:00
D G Turner 22766a339f HDB: Reduce GCC Compiler Warnings
These warnings occur from -Wcast-function-type due to the casting between
FuncPtr and EntFuncPtr. This change reduces the number of these required,
but further work will be needed to remove this fully without causing a
regression in game function.
2021-07-20 09:40:16 +01:00
D G Turner 04409da6de HDB: Minor Improvements for Code Readability
No functional change.
2021-07-20 07:33:19 +01:00
D G Turner 143cebf508 HDB: Fix Memset on Non-Trivial Structure GCC Compiler Warnings 2021-03-23 03:07:56 +00:00
Eugene Sandulenko 002e603c49 HDB: Initialize more class variables 2020-04-30 13:49:33 +02:00
Eugene Sandulenko 6e162cfe60 HDB: Init rest of the variables and replace NULL with nullptr 2020-04-28 09:40:30 +02:00
Eugene Sandulenko 16f1ff13bc HDB: Use Common::strlcpy() everywhere 2020-04-27 18:29:39 +02:00
Eugene Sandulenko 8bf2747b32 HDB: Initialize class variables 2020-04-27 15:18:17 +02:00
Strangerke 35ff6adfd5 HDB: Fix some more uninitialized variables 2019-09-16 23:06:17 +02:00
D G Turner c0d6a8fc7a HDB: Further Fixes for GCC Compiler Warnings 2019-09-13 23:06:32 +01:00
Strangerke 0e04da2cc8 HDB: Fix more uninitialized variables in ai-init 2019-09-09 22:47:27 +02:00
Strangerke caa870bc25 HDB: Fix uninitialized variables in ai_init and menu 2019-09-06 21:46:21 +02:00
D G Turner cb88db65cd HDB: Fix Some GCC Compiler Warnings 2019-09-04 19:47:15 +01:00
Strangerke 2178770898 HDB: Change init functions to handle errors 2019-09-03 17:17:34 +02:00
Nipun Garg a9e65176a1 HDB: Add more Platform-specific Constants 2019-09-03 17:17:30 +02:00
Nipun Garg 0fb3ad7ba0 HDB: Make Platform specific constants into variables 2019-09-03 17:17:30 +02:00
Strangerke f7bc31f9e6 HDB: Some cleanup in ai-init 2019-09-03 17:17:29 +02:00
Eugene Sandulenko 810ac81b0f HDB: Reduce header dependency 2019-09-03 17:17:28 +02:00
Eugene Sandulenko a0856c6c3a HDB: Reduce header dependency 2019-09-03 17:17:28 +02:00
Eugene Sandulenko 91da8c7aab HDB: Reduce header dependency 2019-09-03 17:17:27 +02:00
Eugene Sandulenko a0817b0b5a HDB: Reduce header dependency 2019-09-03 17:17:27 +02:00
Eugene Sandulenko c3d0f49538 HDB: Reduce header dependency 2019-09-03 17:17:27 +02:00
Eugene Sandulenko b845e70102 HDB: Reduce header dependency 2019-09-03 17:17:27 +02:00
Eugene Sandulenko c10034df93 HDB: Fix warning 2019-09-03 17:17:24 +02:00
Nipun Garg 1b6b2a96a0 HDB: Fix 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 bba1fa849b HDB: Fix loading 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 ecefec2f77 HDB: Add _animTiles to fix memory leaks 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 5363b38fe5 HDB: Delete Player Graphics in destructor 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 adb43a79b7 HDB: Fix memory leaks in AI lists 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
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
Eugene Sandulenko 5cf1f6a2f9 HDB: Fix switches 2019-09-03 17:17:22 +02:00
Nipun Garg fa7593d7d5 HDB: Fix Icon loading 2019-09-03 17:17:20 +02:00
Nipun Garg 72d2f01b93 HDB: Unstub AI::init() 2019-09-03 17:17:20 +02:00
Nipun Garg cea99e3fcd HDB: Unstub Weapon code from save/load 2019-09-03 17:17:19 +02:00
Nipun Garg fe09a9c09c HDB: Initialize Weapon variables 2019-09-03 17:17:19 +02:00
Nipun Garg 79a4a37e8d HDB: Initialize Weapon Gfx 2019-09-03 17:17:19 +02:00
Eugene Sandulenko 0a291d028c HDB: Complete AI::restartSystem() 2019-09-03 17:17:19 +02:00
Nipun Garg b032068417 HDB: Add HDBGame::start() and remove AI::clearP...
...ersistent() placeholder
2019-09-03 17:17:17 +02:00
Eugene Sandulenko fe309b1456 HDB: Fix save/loading of inventory 2019-09-03 17:17:17 +02:00
Eugene Sandulenko e7016e52a9 HDB: Refarcot entity save/loading into separate methods 2019-09-03 17:17:17 +02:00