From 8bad95c7c6169886f04719dd3f76a4afdc2b420b Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 29 Oct 2021 09:16:07 +0200 Subject: [PATCH] - reinstated deleted saveable_code entries with dummy pointers. This is to preserve savegame compatibility for now. Later the code pointer saving needs a thorough cleanup. --- source/games/sw/src/ninja.cpp | 2 ++ source/games/sw/src/sprite.cpp | 2 ++ source/games/sw/src/weapon.cpp | 2 ++ 3 files changed, 6 insertions(+) diff --git a/source/games/sw/src/ninja.cpp b/source/games/sw/src/ninja.cpp index e16bacb1f..a168dded4 100644 --- a/source/games/sw/src/ninja.cpp +++ b/source/games/sw/src/ninja.cpp @@ -2502,6 +2502,8 @@ SpawnPlayerUnderSprite(PLAYERp pp) static saveable_code saveable_ninja_code[] = { + SAVE_CODE(SetupNinja), + SAVE_CODE(SetupNinja), SAVE_CODE(DoNinjaHariKari), SAVE_CODE(DoNinjaGrabThroat), SAVE_CODE(DoNinjaMove), diff --git a/source/games/sw/src/sprite.cpp b/source/games/sw/src/sprite.cpp index 0fb9c5b6b..034ec659d 100644 --- a/source/games/sw/src/sprite.cpp +++ b/source/games/sw/src/sprite.cpp @@ -7389,6 +7389,8 @@ static saveable_code saveable_sprite_code[] = SAVE_CODE(DoActorGlobZ), SAVE_CODE(DoStayOnFloor), SAVE_CODE(DoGrating), + SAVE_CODE(move_ground_missile), // dead entries, kept for savegame compatibility. + SAVE_CODE(move_ground_missile), SAVE_CODE(DoKey), SAVE_CODE(DoCoin), SAVE_CODE(KillGet), diff --git a/source/games/sw/src/weapon.cpp b/source/games/sw/src/weapon.cpp index 2c7bc0a7f..7144eea9d 100644 --- a/source/games/sw/src/weapon.cpp +++ b/source/games/sw/src/weapon.cpp @@ -21614,6 +21614,7 @@ static saveable_code saveable_weapon_code[] = SAVE_CODE(MissileHitMatch), SAVE_CODE(SpawnShrapX), SAVE_CODE(DoLavaErupt), + SAVE_CODE(QueueLoWangs), // dead entry, for savegame compatibility. SAVE_CODE(SpawnShrap), SAVE_CODE(DoShrapMove), SAVE_CODE(DoVomit), @@ -21714,6 +21715,7 @@ static saveable_code saveable_weapon_code[] = SAVE_CODE(SpawnGrenadeSmallExp), SAVE_CODE(SpawnGrenadeExp), SAVE_CODE(SpawnMineExp), + SAVE_CODE(QueueLoWangs), // dead entry, for savegame compatibility. SAVE_CODE(DoSectorExp), SAVE_CODE(SpawnSectorExp), SAVE_CODE(SpawnLargeExp),