mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-03 10:17:59 +03:00
Replaced hardcoded Animating 2 for Minecraft switch with new item ID_MINECRAFT_SWITCH
This commit is contained in:
parent
21bbafe469
commit
bb976c82dd
2 changed files with 3 additions and 3 deletions
|
@ -194,7 +194,7 @@ static void CartToBaddieCollision(ITEM_INFO* v)
|
|||
if (item->collidable && item->status != ITEM_INVISIBLE && item != LaraItem && item != v)
|
||||
{
|
||||
OBJECT_INFO* object = &Objects[item->objectNumber];
|
||||
if (object->collision && (object->intelligent || item->objectNumber == ID_ROLLINGBALL || item->objectNumber == ID_ANIMATING2))
|
||||
if (object->collision && (object->intelligent || item->objectNumber == ID_ROLLINGBALL || item->objectNumber == ID_MINECART_SWITCH))
|
||||
{
|
||||
int x = v->pos.xPos - item->pos.xPos;
|
||||
int y = v->pos.yPos - item->pos.yPos;
|
||||
|
@ -203,7 +203,7 @@ static void CartToBaddieCollision(ITEM_INFO* v)
|
|||
{
|
||||
if (TestBoundsCollide(item, LaraItem, CART_BADDIE_RADIUS))
|
||||
{
|
||||
if (item->objectNumber == ID_ANIMATING2)
|
||||
if (item->objectNumber == ID_MINECART_SWITCH)
|
||||
{
|
||||
if ((item->frameNumber == g_Level.Anims[item->animNumber].frameBase) && (LaraItem->currentAnimState == CART_USE) && (LaraItem->animNumber == Objects[ID_MINECART_LARA_ANIMS].animIndex + 6))
|
||||
{
|
||||
|
|
|
@ -65,7 +65,7 @@ enum GAME_OBJECT_ID : short
|
|||
ID_RUBBER_BOAT, // TR3 / (TR4 TRNG)
|
||||
ID_BIGGUN_ANIMS,
|
||||
ID_BIGGUN, // TR3
|
||||
|
||||
ID_MINECART_SWITCH, //NEW - Added to un-hardcode Minecart switch from ANIMATING_2
|
||||
|
||||
ID_VEHICLE_SMASHABLE_FLOOR = 90, // NEW
|
||||
ID_VEHICLE_SMASHABLE_WALL, // NEW
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue