mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-09-11 22:45:06 -04:00
Added potential memory saver.
This commit is contained in:
@@ -63,13 +63,15 @@ public class spawning extends script.base_script
|
||||
}
|
||||
public static void addToSpawnDebugList(obj_id self, obj_id spawned) throws InterruptedException
|
||||
{
|
||||
Vector debugSpawnList = new Vector();
|
||||
debugSpawnList.setSize(0);
|
||||
if(!utils.inDebugMode()) return;
|
||||
Vector debugSpawnList;
|
||||
if (utils.hasScriptVar(self, "debugSpawnList"))
|
||||
{
|
||||
debugSpawnList = utils.getResizeableObjIdArrayScriptVar(self, "debugSpawnList");
|
||||
debugSpawnList = utils.addElement(debugSpawnList, spawned);
|
||||
} else {
|
||||
debugSpawnList = utils.addElement(new Vector(), spawned);
|
||||
}
|
||||
debugSpawnList = utils.addElement(debugSpawnList, spawned);
|
||||
utils.setScriptVar(self, "debugSpawnList", debugSpawnList);
|
||||
}
|
||||
public static Vector getAllObjectsWithObjVar(location locTest, String strObjVarName) throws InterruptedException
|
||||
|
||||
Reference in New Issue
Block a user