mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-09-29 15:12:58 -04:00
More Java optimizations and code review for library and spawning systems.
This commit is contained in:
Regular → Executable
+6
-13
@@ -1,16 +1,11 @@
|
||||
package script.systems.spawning;
|
||||
|
||||
import script.*;
|
||||
import script.base_class.*;
|
||||
import script.combat_engine.*;
|
||||
import java.util.Arrays;
|
||||
import java.util.Hashtable;
|
||||
import java.util.Vector;
|
||||
import script.base_script;
|
||||
|
||||
import script.dictionary;
|
||||
import script.library.ai_lib;
|
||||
import script.library.create;
|
||||
import script.library.utils;
|
||||
import script.location;
|
||||
import script.obj_id;
|
||||
|
||||
public class theater_spawnegg extends script.base_script
|
||||
{
|
||||
@@ -29,11 +24,9 @@ public class theater_spawnegg extends script.base_script
|
||||
{
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
for (int i = 0; i < spawnList.length; i++)
|
||||
{
|
||||
if (isIdValid(spawnList[i]))
|
||||
{
|
||||
destroyObject(spawnList[i]);
|
||||
for (obj_id aSpawnList : spawnList) {
|
||||
if (isIdValid(aSpawnList)) {
|
||||
destroyObject(aSpawnList);
|
||||
}
|
||||
}
|
||||
return SCRIPT_CONTINUE;
|
||||
|
||||
Reference in New Issue
Block a user