diff options
Diffstat (limited to 'Targets.c4d/System.c4g/Towers.c')
| -rw-r--r-- | Targets.c4d/System.c4g/Towers.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Targets.c4d/System.c4g/Towers.c b/Targets.c4d/System.c4g/Towers.c index 1b66297..c06f491 100644 --- a/Targets.c4d/System.c4g/Towers.c +++ b/Targets.c4d/System.c4g/Towers.c @@ -12,9 +12,9 @@ func SensorCallbacks() { if(FindGate(part[0])) { - ret[GetLength(ret)] = [Format("$TWR2_GateOpen$", part[1]), part[2][0]]; - ret[GetLength(ret)] = [Format("$TWR2_GateClose$", part[1]), part[2][1]]; - ret[GetLength(ret)] = [Format("$TWR2_GateOpenClose$", part[1]), part[2][2]]; + ret[] = [Format("$TWR2_GateOpen$", part[1]), part[2][0]]; + ret[] = [Format("$TWR2_GateClose$", part[1]), part[2][1]]; + ret[] = [Format("$TWR2_GateOpenClose$", part[1]), part[2][2]]; } } return ret; @@ -35,7 +35,7 @@ func GateOpenClose(bool right, bool close) if(gate) { gate->Activate(); - + if(close) { gate->Close(); |
