From fcf2af19378f7b021669a1dd018f7beac9f6d4b7 Mon Sep 17 00:00:00 2001 From: Mark Date: Thu, 20 Dec 2018 23:49:39 +0100 Subject: [PATCH] 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. --- .../Libraries.ocd/ClonkInteractionControl.ocd/Script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planet/Objects.ocd/Libraries.ocd/ClonkInteractionControl.ocd/Script.c b/planet/Objects.ocd/Libraries.ocd/ClonkInteractionControl.ocd/Script.c index 7f80b28a2..4649484d1 100644 --- a/planet/Objects.ocd/Libraries.ocd/ClonkInteractionControl.ocd/Script.c +++ b/planet/Objects.ocd/Libraries.ocd/ClonkInteractionControl.ocd/Script.c @@ -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)