This commit is contained in:
MontyTRC89 2021-09-08 16:47:31 +02:00
commit 63bd495584
3 changed files with 5 additions and 5 deletions

View file

@ -316,7 +316,7 @@ void lara_col_run(ITEM_INFO* item, COLL_INFO* coll)
{
item->pos.zRot = 0;
if (coll->splat || TestWall(item, 256, 0, -640))
if (coll->hitTallBounds || TestWall(item, 256, 0, -640))
{
item->goalAnimState = LS_SPLAT;
if (GetChange(item, &g_Level.Anims[item->animNumber]))
@ -2195,7 +2195,7 @@ void lara_col_dash(ITEM_INFO* item, COLL_INFO* coll)
{
item->pos.zRot = 0;
if (coll->splat || TestWall(item, 256, 0, -640))
if (coll->hitTallBounds || TestWall(item, 256, 0, -640))
{
item->goalAnimState = LS_SPLAT;
if (GetChange(item, &g_Level.Anims[item->animNumber]))

View file

@ -491,7 +491,7 @@ bool CollideSolidBounds(ITEM_INFO* item, BOUNDING_BOX box, PHD_3DPOS pos, COLL_I
// Set splat state flag if item is Lara and bounds are taller than Lara's headroom
if (item == LaraItem && coll->collType == CT_FRONT)
coll->splat = (YMin <= inYMin + LARA_HEADROOM);
coll->hitTallBounds = (YMin <= inYMin + LARA_HEADROOM);
return true;
}
@ -2714,7 +2714,7 @@ void DoObjectCollision(ITEM_INFO* l, COLL_INFO* coll) // previously LaraBaddieCo
l->hitStatus = false;
coll->hitStatic = false;
coll->splat = false;
coll->hitTallBounds = false;
if (l == LaraItem)
Lara.hitDirection = -1;

View file

@ -61,7 +61,7 @@ struct COLL_INFO
signed char tiltX;
signed char tiltZ;
bool hitStatic;
bool splat;
bool hitTallBounds;
bool slopesAreWalls;
bool slopesArePits;
bool lavaIsPit;