mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-04 18:57:59 +03:00
Fixed issues with new leaning.
This commit is contained in:
parent
16483a3093
commit
817af99b29
1 changed files with 3 additions and 6 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue