tr2/lara/cheat: reset hands in fly cheat

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.
This commit is contained in:
lahm86 2024-11-12 11:51:48 +00:00
parent 5d4ec505b4
commit e19ae603e7
2 changed files with 5 additions and 0 deletions

View file

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

View file

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