1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-09 22:56:53 +02:00

fix trap doors collision (LEVEL2)

This commit is contained in:
XProger
2018-11-24 06:20:35 +03:00
parent b13436f371
commit 0637329934

View File

@@ -3407,6 +3407,8 @@ struct Lara : Character {
if (!controller || !controller->isCollider()) continue; if (!controller || !controller->isCollider()) continue;
if (e.type == TR::Entity::TRAP_DOOR_1 || e.type == TR::Entity::TRAP_DOOR_2) continue;
if (e.isEnemy()) { if (e.isEnemy()) {
if (e.type != TR::Entity::ENEMY_REX && (controller->flags.active != TR::ACTIVE || ((Character*)controller)->health <= 0)) continue; if (e.type != TR::Entity::ENEMY_REX && (controller->flags.active != TR::ACTIVE || ((Character*)controller)->health <= 0)) continue;
} else { } else {