Fix not being able to exit a structure

It seems that the default structures have the entrance close to the
offset, so that there is an overlap and can_be_entered is true even
inside the structure.

In my case the structure offset and entrance area do not overlap, so you
could unfortunately not leave the structure.
master
Mark 2018-12-20 23:49:39 +01:00
parent 6351fe7a66
commit fcf2af1937
1 changed files with 1 additions and 1 deletions

View File

@ -453,7 +453,7 @@ func GetInteractableObjects(array sort)
can_be_entered &= (interactable->~IsContainer() || interactable->~AllowsVehicleEntrance());
}
}
if (can_be_entered && (!can_only_use_container || can_be_exited))
if (can_be_exited || (can_be_entered && !can_only_use_container))
{
var priority = 29;
if (can_be_exited)