This commit is contained in:
aozhiwei 2021-08-06 09:48:37 +00:00
parent c669be1a88
commit 1f9e7a169f
2 changed files with 3 additions and 1 deletions

View File

@ -877,7 +877,6 @@ bool Obstacle::ProcSpecEvent(Creature* c, ColliderComponent* collider)
switch (meta->i->thing_type()) {
case kObstacleSpring:
{
return false;
if (c->IsHuman()) {
if (!c->AsHuman()->GetCar()) {
AddObstacleBuff(c);

View File

@ -488,6 +488,9 @@ void Player::ProcInteraction()
break;
case ET_Loot:
{
if (entity->GetPos().Distance(GetPos()) > 150) {
break;
}
LootInteraction((Loot*)entity);
}
break;