From b4ee17dd617fe7df0fdafc57bf40bedb7314917b Mon Sep 17 00:00:00 2001 From: PrisonCamp Date: Tue, 23 Dec 2014 02:02:38 -0800 Subject: [PATCH] Fixed spawner issue --- .../compiled/game/script/city/droid_spawner.script | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sku.0/sys.server/compiled/game/script/city/droid_spawner.script b/sku.0/sys.server/compiled/game/script/city/droid_spawner.script index baabf5bd1..139cf2633 100644 --- a/sku.0/sys.server/compiled/game/script/city/droid_spawner.script +++ b/sku.0/sys.server/compiled/game/script/city/droid_spawner.script @@ -95,6 +95,7 @@ void doSpawn (obj_id self) int maxPop = getIntObjVar (self, "pop"); location me = getLocation(self); + /* location here = locations.getGoodLocationAroundLocation(me, 1f, 1f, 1.5f, 1.5f); if (here == null) { @@ -105,10 +106,11 @@ void doSpawn (obj_id self) { debugServerConsoleMsg (self, "droid_spawner couldn't find a good location!"); return; - } + } + */ string spawn = npcToSpawn(); - obj_id npc = create.object (spawn, here); + obj_id npc = create.object (spawn, me); attachScript (npc, "city.droid_wander"); setInvulnerable(npc, true); @@ -170,4 +172,4 @@ string npcToSpawn() } return spawn; -} \ No newline at end of file +}