Skip to content
Permalink
Browse files

Fix #1969: Prevent pushing vehicles into buildings where they are irr…

…etrievable
  • Loading branch information...
gitMarky committed Jan 14, 2018
1 parent 88aac09 commit 7b13b3455ce7b47e978cb913055180b415916206
Showing with 6 additions and 1 deletion.
  1. +6 −1 planet/Objects.ocd/Libraries.ocd/ClonkInteractionControl.ocd/Script.c
@@ -447,7 +447,12 @@ func GetInteractableObjects(array sort)
var overlap = Shape->Intersect(entrance, shape);
// Interactable can be entered if the area of overlap is bigger than zero.
can_be_entered = overlap->GetArea() > 0;
}
// Interactable can be entered if you are pushing a vehcile and the object is a container, see issue #1969
if (GetProcedure() == "PUSH")
{
can_be_entered &= interactable->~IsContainer();
}
}
if (can_be_entered && (!can_only_use_container || can_be_exited))
{
var priority = 29;

0 comments on commit 7b13b34

Please sign in to comment.
You can’t perform that action at this time.