Skip to content

Commit

Permalink
grenade: fix kills counting as two kills (#1764)
Browse files Browse the repository at this point in the history
Resolves #1560.
  • Loading branch information
walkawayy authored Oct 28, 2024
1 parent 535a502 commit db9f33b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/tr2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- fixed Lara's underwater hue being retained when re-entering a boat (#1596)
- fixed Lara reloading the harpoon gun after every shot in NG+ (#1575)
- fixed the dragon reviving itself after Lara removes the dagger in rare circumstances (#1572)
- fixed grenades counting as double kills in the game statistics (#1560)

## [0.5](https://github.com/LostArtefacts/TRX/compare/afaf12a...tr2-0.5) - 2024-10-08
- added `/sfx` command
Expand Down
1 change: 1 addition & 0 deletions docs/tr2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ decompilation process. We recognize that there is much work to be done.
- fixed the distorted skybox in room 5 of Barkhang Monastery
- fixed Lara reloading the harpoon gun after every shot in NG+
- fixed the dragon reviving itself after Lara removes the dagger in rare circumstances
- fixed grenades counting as double kills in the game statistics

#### Visuals

Expand Down
1 change: 0 additions & 1 deletion src/tr2/game/objects/general/grenade.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ void __cdecl Grenade_Control(int16_t item_num)
g_SaveGame.statistics.hits++;

if (target_item->hit_points <= 0) {
g_SaveGame.statistics.kills++;
if (target_item->object_id != O_DRAGON_FRONT
&& target_item->object_id != O_GIANT_YETI) {
Creature_Die(target_item_num, true);
Expand Down

0 comments on commit db9f33b

Please sign in to comment.