diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2017-01-02 23:19:54 +0100 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2017-01-02 23:20:21 +0100 |
| commit | 85354626853786b1d9ce9b99cd26a15a120eedda (patch) | |
| tree | a917c3e78d14e52dbe7f8491c5fe7ec58fd8f34a /System.c4g/DTSelectionContext.c | |
| parent | aac6a3ee2ee219b6c320c7ebccb2ac10e7e16485 (diff) | |
| download | ObjectsAppend-85354626853786b1d9ce9b99cd26a15a120eedda.tar.gz ObjectsAppend-85354626853786b1d9ce9b99cd26a15a120eedda.zip | |
Avoid multiple calls to the ControlDigDouble overload to maintain correct precedence
Diffstat (limited to 'System.c4g/DTSelectionContext.c')
| -rw-r--r-- | System.c4g/DTSelectionContext.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/System.c4g/DTSelectionContext.c b/System.c4g/DTSelectionContext.c index 998c6f5..2cd4aba 100644 --- a/System.c4g/DTSelectionContext.c +++ b/System.c4g/DTSelectionContext.c @@ -358,7 +358,7 @@ func RemoveLineEntry(id id, int pos) Sound("Error"); return false; } - + var lnkt = CreateObject(connection[1]->~KitID() || LNKT, 0, 0, GetOwner()); Collect(lnkt); Sound("Connect"); @@ -374,10 +374,10 @@ func RemoveLineEntry(id id, int pos) return true; } -func ControlDigDouble() +func ControlDigDouble(target, overloaded) { - var ret = _inherited(...); - if(!ret) + var ret = _inherited(target, true, ...); + if(!ret && !overloaded) { if(GetProcedure() == "WALK" || GetProcedure() == "DIG" || GetProcedure() == "SWIM") { |
