1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-21 12:21:33 +02:00

#368 fix false NO

This commit is contained in:
XProger
2022-01-13 23:58:59 +03:00
parent 8d1f8922c9
commit 5cdc60c3c5
2 changed files with 1 additions and 10 deletions

View File

@@ -1489,8 +1489,6 @@ struct ExtraInfoLara
Nav nav; Nav nav;
vec3i tmpPos;
uint16 lastInput; uint16 lastInput;
int8 healthTimer; int8 healthTimer;

View File

@@ -626,16 +626,9 @@ struct Hole : Object // parent class for KeyHole and PuzzleHole
flags |= ITEM_FLAG_STATUS_ACTIVE; flags |= ITEM_FLAG_STATUS_ACTIVE;
return; return;
} }
lara->extraL->tmpPos.x = ~lara->pos.x;
inventory.useSlot = SLOT_MAX; inventory.useSlot = SLOT_MAX;
} }
soundPlay(SND_NO, &lara->pos);
if (lara->extraL->tmpPos != lara->pos)
{
lara->extraL->tmpPos = lara->pos;
soundPlay(SND_NO, &lara->pos);
}
} }
}; };