forked from Mirrors/openclonk
Library_Constructor: use normal single-use instead of holding-use
..because the library wasn't actually USING the holding callback at all. And it had/has its own CON_Aim hackery anyway. No need for the control-library internal CON_Aim stuff then (I could imagine this might just lead to issues at some point).liquid_container
parent
d9760cdab6
commit
28ffc3d3b1
|
@ -13,18 +13,10 @@ func RejectUse(object clonk)
|
|||
return !clonk->IsWalking();
|
||||
}
|
||||
|
||||
public func ControlUseStart(object clonk, int x, int y)
|
||||
public func ControlUse(object clonk, int x, int y)
|
||||
{
|
||||
// Otherwise create a menu with possible structures to build.
|
||||
OpenConstructionMenu(clonk);
|
||||
clonk->CancelUse();
|
||||
return true;
|
||||
}
|
||||
|
||||
public func HoldingEnabled() { return true; }
|
||||
|
||||
public func ControlUseHolding(object clonk, int x, int y)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue