mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-11 04:56:49 +03:00
Merge branch 'master' of https://github.com/MontyTRC89/TombEngine
This commit is contained in:
commit
63bd495584
3 changed files with 5 additions and 5 deletions
|
@ -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]))
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue