mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-06 19:01:06 +03:00
Cleanup
This commit is contained in:
parent
5a38b39a97
commit
ac0811a0f6
7 changed files with 103 additions and 101 deletions
|
@ -228,17 +228,14 @@ void lara_as_run_forward(ITEM_INFO* item, COLL_INFO* coll)
|
|||
DoLaraLean(item, coll, LARA_LEAN_MAX, LARA_LEAN_RATE);
|
||||
}
|
||||
|
||||
if ((TrInput & IN_JUMP || info->queueJump) &&
|
||||
if ((TrInput & IN_JUMP || info->jumpQueued) &&
|
||||
!item->gravityStatus &&
|
||||
info->waterStatus != LW_WADE)
|
||||
{
|
||||
info->queueJump = TrInput & IN_FORWARD;
|
||||
info->jumpQueued = TrInput & IN_FORWARD;
|
||||
|
||||
if (info->jumpCount >= LARA_JUMP_TIME)
|
||||
{
|
||||
info->queueJump = false;
|
||||
item->goalAnimState = LS_JUMP_FORWARD;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -2019,6 +2016,10 @@ void lara_as_sprint(ITEM_INFO* item, COLL_INFO* coll)
|
|||
|
||||
info->sprintTimer--;
|
||||
|
||||
info->jumpCount++;
|
||||
if (info->jumpCount > LARA_JUMP_TIME)
|
||||
info->jumpCount = LARA_JUMP_TIME;
|
||||
|
||||
if (item->hitPoints <= 0)
|
||||
{
|
||||
item->goalAnimState = LS_DEATH;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue