mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-06 19:01:06 +03:00
Simplify animation switching
This commit is contained in:
parent
31b49862ec
commit
a8dab89ce1
9 changed files with 47 additions and 187 deletions
|
@ -140,19 +140,13 @@ void InitialiseLaraAnims(ITEM_INFO* item)
|
|||
if (TestLaraWater(item))
|
||||
{
|
||||
Lara.waterStatus = LW_UNDERWATER;
|
||||
item->goalAnimState = LS_UNDERWATER_STOP;
|
||||
item->currentAnimState = LS_UNDERWATER_STOP;
|
||||
item->fallspeed = 0;
|
||||
item->animNumber = LA_UNDERWATER_IDLE;
|
||||
item->frameNumber = g_Level.Anims[item->animNumber].frameBase;
|
||||
SetAnimation(item, LA_UNDERWATER_IDLE);
|
||||
}
|
||||
else
|
||||
{
|
||||
Lara.waterStatus = LW_ABOVE_WATER;
|
||||
item->goalAnimState = LS_STOP;
|
||||
item->currentAnimState = LS_STOP;
|
||||
item->animNumber = LA_STAND_SOLID;
|
||||
item->frameNumber = g_Level.Anims[item->animNumber].frameBase;
|
||||
SetAnimation(item, LA_STAND_SOLID);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue