Skip to content

Commit

Permalink
lara: fix ng+ issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Aug 14, 2024
1 parent 65bed6e commit c3740a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/game/lara/lara.c
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,9 @@ void Lara_RevertToPistolsIfNeeded(void)
g_Lara.gun_type = LGT_PISTOLS;
g_Lara.request_gun_type = LGT_PISTOLS;

g_Lara.holsters_gun_type = LGT_UNARMED;
if (g_Lara.holsters_gun_type == LGT_PISTOLS) {
g_Lara.holsters_gun_type = LGT_UNARMED;
}
if (Inv_RequestItem(O_SHOTGUN_ITEM)) {
g_Lara.back_gun_type = LGT_SHOTGUN;
} else {
Expand Down
1 change: 1 addition & 0 deletions src/game/savegame/savegame.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ void Savegame_ApplyLogicToCurrentInfo(int level_num)
current->magnum_ammo = 1234;
current->uzi_ammo = 1234;
current->equipped_gun_type = LGT_UZIS;
current->holsters_gun_type = LGT_UZIS;
}

// Fallback logic to figure out holster and back gun items for versions 4.2
Expand Down

0 comments on commit c3740a4

Please sign in to comment.