forked from Mirrors/openclonk
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
parent
6351fe7a66
commit
fcf2af1937
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue