mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-03 10:17:59 +03:00
Fix vertical water resurfacing
This commit is contained in:
parent
c882709b3d
commit
cc66f2633b
1 changed files with 1 additions and 3 deletions
|
@ -1338,11 +1338,9 @@ void TestLaraWaterDepth(ITEM_INFO* item, COLL_INFO* coll)
|
||||||
item->pos.yPos = coll->Setup.OldPosition.y;
|
item->pos.yPos = coll->Setup.OldPosition.y;
|
||||||
item->pos.zPos = coll->Setup.OldPosition.z;
|
item->pos.zPos = coll->Setup.OldPosition.z;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Height check was at STEP_SIZE * 2 before but changed to this
|
// Height check was at STEP_SIZE * 2 before but changed to this
|
||||||
// because now Lara surfaces on a head level, not mid-body level.
|
// because now Lara surfaces on a head level, not mid-body level.
|
||||||
|
else if (waterDepth <= LARA_HEIGHT - LARA_HEADROOM / 2)
|
||||||
if (waterDepth <= LARA_HEIGHT - LARA_HEADROOM / 2)
|
|
||||||
{
|
{
|
||||||
SetAnimation(item, LA_UNDERWATER_TO_STAND);
|
SetAnimation(item, LA_UNDERWATER_TO_STAND);
|
||||||
item->goalAnimState = LS_STOP;
|
item->goalAnimState = LS_STOP;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue