summaryrefslogtreecommitdiffstats
path: root/DTObjectSerializing.c
diff options
context:
space:
mode:
Diffstat (limited to 'DTObjectSerializing.c')
-rw-r--r--DTObjectSerializing.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/DTObjectSerializing.c b/DTObjectSerializing.c
index 8633f8c..e3b6de0 100644
--- a/DTObjectSerializing.c
+++ b/DTObjectSerializing.c
@@ -161,7 +161,7 @@ global func GetObjectSaveData(object obj)
var cnt = GetComponent(componentID, 0, 0, id);
if(cnt != 0)
{
- defComponents[GetLength(defComponents)] = [componentID, cnt];
+ defComponents[] = [componentID, cnt];
}
}
for(var i = 0, componentID; componentID = GetComponent(0, i, obj); ++i)
@@ -169,7 +169,7 @@ global func GetObjectSaveData(object obj)
var cnt = GetComponent(componentID, 0, obj);
if(cnt != 0)
{
- objComponents[GetLength(objComponents)] = [componentID, cnt];
+ objComponents[] = [componentID, cnt];
}
}
@@ -190,7 +190,7 @@ global func GetObjectSaveData(object obj)
if(cnt != defCnt)
{
- diffComponents[GetLength(diffComponents)] = [defID, cnt];
+ diffComponents[] = [defID, cnt];
}
}
ArrayAppendArray(diffComponents, objComponents);
@@ -203,7 +203,7 @@ global func GetObjectSaveData(object obj)
var contents = [];
for(var content in obj->GetContents())
{
- contents[GetLength(contents)] = GetObjectSaveData(content);
+ contents[] = GetObjectSaveData(content);
}
ret[Object_Contents] = contents;
ret[Object_PlrViewRange] = GetObjectVal("PlrViewRange", 0, obj);
@@ -222,7 +222,7 @@ global func GetObjectSaveData(object obj)
for(var i = 0; i < cnt; ++i)
{
var name = GetLocalByIndex(i, obj, f);
- locals[GetLength(locals)] = [name, LocalX(name, obj)];
+ locals[] = [name, LocalX(name, obj)];
}
}
@@ -233,7 +233,7 @@ global func GetObjectSaveData(object obj)
while((offset = obj->GetOverlayValueByIndex(diffIndex, offset)) >= 0)
{
var overlayID = obj->GetOverlayValueByIndex(0, offset, 1);
- overlays[GetLength(overlays)] = [obj->GetOverlayValueByIndex(0, offset, 4), obj->GetOverlayValueByIndex(0, offset, 3), overlayID, obj->GetOverlayValueByIndex(0, offset, 2), obj->GetOverlayValueByIndex(0, offset, 5), obj->GetOverlayValueByIndex(0, offset, 6), Object(obj->GetOverlayValueByIndex(0, offset, 8)), obj->GetObjDrawTransform(-1, offset), GetClrModulation(obj, overlayID)];
+ overlays[] = [obj->GetOverlayValueByIndex(0, offset, 4), obj->GetOverlayValueByIndex(0, offset, 3), overlayID, obj->GetOverlayValueByIndex(0, offset, 2), obj->GetOverlayValueByIndex(0, offset, 5), obj->GetOverlayValueByIndex(0, offset, 6), Object(obj->GetOverlayValueByIndex(0, offset, 8)), obj->GetObjDrawTransform(-1, offset), GetClrModulation(obj, overlayID)];
diffIndex = 1;
}
if(GetActMapVal("FlipDir", action, id) && GetDir(obj) == DIR_Right)
@@ -248,7 +248,7 @@ global func GetObjectSaveData(object obj)
var value = GetPhysical(physical, PHYS_Current, obj);
if(value != GetPhysical(physical, 0, 0, id))
{
- physicals[GetLength(physicals)] = [physical, value];
+ physicals[] = [physical, value];
}
}
if(GetLength(physicals) != 0)