grenade: fix kills counting as two kills (#1764)

Resolves #1560.
This commit is contained in:
walkawayy 2024-10-28 16:09:11 -04:00 committed by GitHub
parent 535a502011
commit db9f33b815
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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);