Skip to content
Permalink
Browse files

correctly stop use control when clonk is attached (#1590)

  • Loading branch information...
MDT-Maikel committed Apr 17, 2016
1 parent 21b7d86 commit b7a8b3067f34c54edeb3c2e0527fab7aeacf6da5
Showing with 2 additions and 2 deletions.
  1. +2 −2 planet/Objects.ocd/Libraries.ocd/ClonkControl.ocd/Script.c
@@ -875,7 +875,7 @@ func ControlUse2Script(int ctrl, int x, int y, int strength, bool repeat, bool r
{
return StartUseControl(ctrl,x, y, obj);
}
else if (release && obj == this.control.current_object)
else if (release && (obj == this.control.current_object || obj == GetActionTarget()))
{
return StopUseControl(x, y, obj);
}
@@ -887,7 +887,7 @@ func ControlUse2Script(int ctrl, int x, int y, int strength, bool repeat, bool r
{
return StartUseDelayedControl(ctrl, obj);
}
else if (release && obj == this.control.current_object)
else if (release && (obj == this.control.current_object || obj == GetActionTarget()))
{
return StopUseDelayedControl(obj);
}

0 comments on commit b7a8b30

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