Skip to content

Commit

Permalink
savegame: fix pushables loading for legacy savegames
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed May 5, 2022
1 parent 2aa2c6b commit 64185cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## [Unreleased](https://github.com/rr-/Tomb1Main/compare/2.8...master)
- fixed Pierre not resetting across levels (#538, regression from 2.7)
- fixed pushables breaking with flipped rooms when loading a save (#536, regression from 2.8)

## [2.8](https://github.com/rr-/Tomb1Main/compare/2.7...2.8) - 2022-05-04
- added the option to pause sound in the inventory screen (#309)
Expand Down
4 changes: 2 additions & 2 deletions src/game/savegame_legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ static bool Savegame_Legacy_NeedsBaconLaraFix(char *buffer)
Savegame_Legacy_Skip(MAX_FLIP_MAPS * sizeof(int8_t)); // flipmap table
Savegame_Legacy_Skip(g_NumberCameras * sizeof(int16_t)); // cameras

Savegame_PreprocessItems();

for (int i = 0; i < g_LevelItemCount; i++) {
ITEM_INFO *item = &g_Items[i];
OBJECT_INFO *obj = &g_Objects[item->object_number];
Expand Down Expand Up @@ -511,6 +509,8 @@ bool Savegame_Legacy_LoadFromFile(MYFILE *fp, GAME_INFO *game_info)
Savegame_Legacy_Read(&g_Camera.fixed[i].flags, sizeof(int16_t));
}

Savegame_PreprocessItems();

for (int i = 0; i < g_LevelItemCount; i++) {
ITEM_INFO *item = &g_Items[i];
OBJECT_INFO *obj = &g_Objects[item->object_number];
Expand Down

0 comments on commit 64185cf

Please sign in to comment.