This commit is contained in:
aozhiwei 2021-08-06 08:08:20 +00:00
parent d896c12b8e
commit 2bd1ebebdb

View File

@ -477,6 +477,9 @@ void Player::ProcInteraction()
for (auto obj_id : interaction_objids) { for (auto obj_id : interaction_objids) {
Entity* entity = room->GetEntityByUniId(obj_id); Entity* entity = room->GetEntityByUniId(obj_id);
if (entity) { if (entity) {
if (entity->GetPos().Distance(GetPos()) > 600) {
continue;
}
switch (entity->GetEntityType()) { switch (entity->GetEntityType()) {
case ET_Obstacle: case ET_Obstacle:
{ {
@ -494,6 +497,8 @@ void Player::ProcInteraction()
} }
break; break;
default: default:
{
}
break; break;
} }
} }