Skip to content

Commit

Permalink
don't snatch Lara's guns in saved games (fixes #90)
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Mar 18, 2021
1 parent 826e6f9 commit bab96d6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/game/gameflow.c
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,8 @@ GF_InterpretSequence(int32_t level_num, GAMEFLOW_LEVEL_TYPE level_type)
break;

case GFS_REMOVE_GUNS:
if (!(SaveGame.bonus_flag & GBF_NGPLUS)) {
if (level_type != GFL_SAVED
&& !(SaveGame.bonus_flag & GBF_NGPLUS)) {
SaveGame.start[level_num].got_pistols = 0;
SaveGame.start[level_num].got_shotgun = 0;
SaveGame.start[level_num].got_magnums = 0;
Expand All @@ -930,8 +931,10 @@ GF_InterpretSequence(int32_t level_num, GAMEFLOW_LEVEL_TYPE level_type)
break;

case GFS_REMOVE_SCIONS:
SaveGame.start[level_num].num_scions = 0;
InitialiseLaraInventory(level_num);
if (level_type != GFL_SAVED) {
SaveGame.start[level_num].num_scions = 0;
InitialiseLaraInventory(level_num);
}
break;

case GFS_MESH_SWAP: {
Expand Down

0 comments on commit bab96d6

Please sign in to comment.