summaryrefslogtreecommitdiffstats
path: root/Items.c4d/Extractor.c4d/Script.c
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2019-07-29 23:34:02 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2019-07-30 00:13:56 +0200
commit913352bb0c0fdb30c35bdaea930a1bdcb47db132 (patch)
tree9b86a7bc95086e273626b8493057a9e8e8d635e9 /Items.c4d/Extractor.c4d/Script.c
parente09caf6412be5d14ec948bc2d8630fa946bd5b88 (diff)
downloadDTTubeMail.c4d-913352bb0c0fdb30c35bdaea930a1bdcb47db132.tar.gz
DTTubeMail.c4d-913352bb0c0fdb30c35bdaea930a1bdcb47db132.zip
Replace arr[GetLength(arr)] with arr[]
Diffstat (limited to 'Items.c4d/Extractor.c4d/Script.c')
-rw-r--r--Items.c4d/Extractor.c4d/Script.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Items.c4d/Extractor.c4d/Script.c b/Items.c4d/Extractor.c4d/Script.c
index 05a1fc6..7dddbc8 100644
--- a/Items.c4d/Extractor.c4d/Script.c
+++ b/Items.c4d/Extractor.c4d/Script.c
@@ -120,9 +120,9 @@ func AddQueue(array args)
}
else
{
- produceQueue[GetLength(produceQueue)] = args;
+ produceQueue[] = args;
}
-
+
if(GetLength(produceQueue) == 1 || !GetCommand(worker))
{
ContinueQueue();
@@ -153,7 +153,7 @@ func ShowQueue()
for(var i = 1; i <= GetLength(produceQueue); ++i)
{
var id = produceQueue[i] && produceQueue[i][0];
-
+
if(lastID == id)
{
++cnt;
@@ -174,7 +174,7 @@ func ShowQueue()
}
cnt = 0;
}
-
+
lastID = id;
}
if(i < GetLength(produceQueue))
@@ -264,7 +264,7 @@ func GetProducableIDs()
{
if(GetDefCollectible(type) && GetHomebaseMaterial(plr, type) && GetWealth(plr) >= GetValue(0, type, attached, plr))
{
- ret[GetLength(ret)] = type;
+ ret[] = type;
}
}
}
@@ -276,7 +276,7 @@ func GetProducableIDs()
{
if(attached->~IsProducerOf(worker, type))
{
- ret[GetLength(ret)] = type;
+ ret[] = type;
}
}
}
@@ -306,7 +306,7 @@ func SensorCallbacks()
{
for(var id in part)
{
- ret[GetLength(ret)] = [Format("$SendObjectType$", GetName(0, id)), BindCallback("SendObjectThroughTube", [Bind(id), 2]), id];
+ ret[] = [Format("$SendObjectType$", GetName(0, id)), BindCallback("SendObjectThroughTube", [Bind(id), 2]), id];
}
}
}