Skip to content

Commit

Permalink
tr2/lara/cheat: reset hands in fly cheat
Browse files Browse the repository at this point in the history
This resets Lara's hands when entering the fly cheat and they are
currently busy, such as when grabbing a pushblock or climbing.

Resolves #1874.
  • Loading branch information
lahm86 committed Nov 12, 2024
1 parent 5d4ec50 commit e19ae60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/tr2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- fixed depth problems when drawing certain rooms (#1853, regression from 0.6)
- fixed Lara getting stuck in her hit animation if she is hit while mounting the boat or skidoo (#1606)
- fixed being unable to go from surface swimming to underwater swimming without first stopping (#1863, regression from 0.6)
- fixed pistols appearing in Lara's hands when entering the fly cheat during certain animations (#1874)

## [0.6](https://github.com/LostArtefacts/TRX/compare/tr2-0.5...tr2-0.6) - 2024-11-06
- added a fly cheat key (#1642)
Expand Down
4 changes: 4 additions & 0 deletions src/tr2/game/lara/cheat.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ bool Lara_Cheat_EnterFlyMode(void)
M_ResetGunStatus();
}

if (g_Lara.gun_status == LGS_HANDS_BUSY) {
g_Lara.gun_status = LGS_ARMLESS;
}

Lara_GetOffVehicle();

if (g_Lara.water_status != LWS_UNDERWATER || g_LaraItem->hit_points <= 0) {
Expand Down

0 comments on commit e19ae60

Please sign in to comment.