mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-11 21:16:55 +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;
|
item->pos.zRot = 0;
|
||||||
|
|
||||||
if (coll->splat || TestWall(item, 256, 0, -640))
|
if (coll->hitTallBounds || TestWall(item, 256, 0, -640))
|
||||||
{
|
{
|
||||||
item->goalAnimState = LS_SPLAT;
|
item->goalAnimState = LS_SPLAT;
|
||||||
if (GetChange(item, &g_Level.Anims[item->animNumber]))
|
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;
|
item->pos.zRot = 0;
|
||||||
|
|
||||||
if (coll->splat || TestWall(item, 256, 0, -640))
|
if (coll->hitTallBounds || TestWall(item, 256, 0, -640))
|
||||||
{
|
{
|
||||||
item->goalAnimState = LS_SPLAT;
|
item->goalAnimState = LS_SPLAT;
|
||||||
if (GetChange(item, &g_Level.Anims[item->animNumber]))
|
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
|
// Set splat state flag if item is Lara and bounds are taller than Lara's headroom
|
||||||
if (item == LaraItem && coll->collType == CT_FRONT)
|
if (item == LaraItem && coll->collType == CT_FRONT)
|
||||||
coll->splat = (YMin <= inYMin + LARA_HEADROOM);
|
coll->hitTallBounds = (YMin <= inYMin + LARA_HEADROOM);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -2714,7 +2714,7 @@ void DoObjectCollision(ITEM_INFO* l, COLL_INFO* coll) // previously LaraBaddieCo
|
||||||
|
|
||||||
l->hitStatus = false;
|
l->hitStatus = false;
|
||||||
coll->hitStatic = false;
|
coll->hitStatic = false;
|
||||||
coll->splat = false;
|
coll->hitTallBounds = false;
|
||||||
|
|
||||||
if (l == LaraItem)
|
if (l == LaraItem)
|
||||||
Lara.hitDirection = -1;
|
Lara.hitDirection = -1;
|
||||||
|
|
|
@ -61,7 +61,7 @@ struct COLL_INFO
|
||||||
signed char tiltX;
|
signed char tiltX;
|
||||||
signed char tiltZ;
|
signed char tiltZ;
|
||||||
bool hitStatic;
|
bool hitStatic;
|
||||||
bool splat;
|
bool hitTallBounds;
|
||||||
bool slopesAreWalls;
|
bool slopesAreWalls;
|
||||||
bool slopesArePits;
|
bool slopesArePits;
|
||||||
bool lavaIsPit;
|
bool lavaIsPit;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue