Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
gameflow: draw secret reward for shotgun shells
Browse files Browse the repository at this point in the history
Resolves #159.
  • Loading branch information
rr- committed Aug 27, 2024
1 parent f7ecd54 commit e1c955f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 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/LostArtefacts/TR2X/compare/stable...develop) - ××××-××-××
- added an option to fix M16 accuracy while running (#45)
- fixed secret rewards not displaying shotgun ammo (#159)
- fixed sounds not playing under certain circumstances (#113, regression from 0.2)
- fixed the excessive pitch and playback speed correction for music files with sampling rate other than 44100 Hz (LostArtefacts/TR1X#1417, regression from 0.2)
- fixed a crash potential with certain music files (regression from 0.2)
Expand Down
4 changes: 4 additions & 0 deletions src/game/gameflow.c
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,10 @@ void __cdecl GF_ModifyInventory(const int32_t level, const int32_t type)
Overlay_AddDisplayPickup(O_SHOTGUN_ITEM);
g_Lara.shotgun_ammo.ammo +=
SHOTGUN_AMMO_QTY * g_GF_SecretInvItems[GF_ADD_INV_SHOTGUN_AMMO];
for (int32_t i = 0;
i < g_GF_SecretInvItems[GF_ADD_INV_SHOTGUN_AMMO]; i++) {
Overlay_AddDisplayPickup(O_SHOTGUN_AMMO_ITEM);
}
} else {
g_Lara.shotgun_ammo.ammo +=
SHOTGUN_AMMO_QTY * g_GF_Add2InvItems[GF_ADD_INV_SHOTGUN_AMMO];
Expand Down

0 comments on commit e1c955f

Please # to comment.