1
This commit is contained in:
parent
d896c12b8e
commit
2bd1ebebdb
@ -477,6 +477,9 @@ void Player::ProcInteraction()
|
||||
for (auto obj_id : interaction_objids) {
|
||||
Entity* entity = room->GetEntityByUniId(obj_id);
|
||||
if (entity) {
|
||||
if (entity->GetPos().Distance(GetPos()) > 600) {
|
||||
continue;
|
||||
}
|
||||
switch (entity->GetEntityType()) {
|
||||
case ET_Obstacle:
|
||||
{
|
||||
@ -494,6 +497,8 @@ void Player::ProcInteraction()
|
||||
}
|
||||
break;
|
||||
default:
|
||||
{
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user