Skip to content

Commit

Permalink
bat: reset fallspeed on death (#1283)
Browse files Browse the repository at this point in the history
This prevents conflicts in setting the bats' Y position during the
death animation, which itself manages Y shift during the bounce.

Resolves #992.
  • Loading branch information
lahm86 authored Apr 8, 2024
1 parent ca32163 commit 5c06785
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- fixed the underwater SFX playing for one frame at the start of Palace Midas (#1251)
- fixed an incorrect frame in Lara's underwater twist animation (OG bug in TR2 onwards) (#1242)
- fixed Lara saying "no" when taking valid actions in front of a key item receptacle (#1268)
- fixed flickering in bats' death animations and rapid shooting if Lara continues to fire when they are killed (#992)

## [3.1.1](https://github.com/LostArtefacts/TR1X/compare/3.1...3.1.1) - 2024-01-19
- changed quick load to show empty passport instead of opening the save game menu when there are no saves (#1141)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ Not all options are turned on by default. Refer to `TR1X_ConfigTool.exe` for det
- fixed bugs when trying to stack multiple movable blocks
- fixed Midas's touch having unrestricted vertical range
- fixed Lara saying "no" when taking valid actions in front of a key item receptacle
- fixed flickering in bats' death animations and rapid shooting if Lara continues to fire when they are killed

#### Cheats
- added a fly cheat
Expand Down
1 change: 1 addition & 0 deletions src/game/objects/creatures/bat.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ void Bat_Control(int16_t item_num)
item->speed = 0;
} else {
item->gravity_status = 0;
item->fall_speed = 0;
item->goal_anim_state = BAT_DEATH;
item->pos.y = item->floor;
}
Expand Down

0 comments on commit 5c06785

Please sign in to comment.