Fixed issues with new leaning.

This commit is contained in:
Sezz 2021-09-26 14:33:38 +10:00
parent 16483a3093
commit 817af99b29

View file

@ -913,15 +913,12 @@ void LaraAboveWater(ITEM_INFO* item, COLL_INFO* coll) //hmmmm
// Handle current Lara status // Handle current Lara status
lara_control_routines[item->currentAnimState](item, coll); lara_control_routines[item->currentAnimState](item, coll);
// ISSUES: // TODO: These commented conditions result in more accurate behaviour, but I suppose this is what we would call "hardcoding".
// Continued lean when vaulting. // Leaving this for now in case something catastrophic is discovered with the simpler check. @Sezz 2021.09.26
// Continued lean in sprint > run transition.
// TODO: These commented conditions result in more accurate behaviour, but I suppose this is what we would call "hardcoding". @Sezz 2021.09.26
/*if ((item->currentAnimState != LS_RUN_FORWARD && item->currentAnimState != LS_SPRINT) /*if ((item->currentAnimState != LS_RUN_FORWARD && item->currentAnimState != LS_SPRINT)
|| ((item->currentAnimState == LS_RUN_FORWARD || item->currentAnimState == LS_SPRINT) || ((item->currentAnimState == LS_RUN_FORWARD || item->currentAnimState == LS_SPRINT)
&& !((TrInput & IN_LEFT) || (TrInput & IN_RIGHT))))*/ && !((TrInput & IN_LEFT) || (TrInput & IN_RIGHT))))*/
if (!Lara.isMoving if (!Lara.isMoving || (Lara.isMoving && !(TrInput & (IN_LEFT | IN_RIGHT))))
&& !(TrInput & (IN_LEFT | IN_RIGHT)))
{ {
if (item->pos.zRot >= ANGLE(0.0f)) if (item->pos.zRot >= ANGLE(0.0f))
item->pos.zRot -= item->pos.zRot / 7; item->pos.zRot -= item->pos.zRot / 7;