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:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user