From 6c28f75490b3842ae930e7c19350bfbc179d0393 Mon Sep 17 00:00:00 2001 From: PrisonCamp Date: Tue, 23 Dec 2014 02:02:45 -0800 Subject: [PATCH] Fixed spawner issue --- .../compiled/game/script/city/guard_spawner.script | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sku.0/sys.server/compiled/game/script/city/guard_spawner.script b/sku.0/sys.server/compiled/game/script/city/guard_spawner.script index 291677607..3472601ad 100644 --- a/sku.0/sys.server/compiled/game/script/city/guard_spawner.script +++ b/sku.0/sys.server/compiled/game/script/city/guard_spawner.script @@ -186,18 +186,19 @@ void doSpawn( obj_id self, boolean onlySpawnOne ) string type = getGuardArea( self ); location me = getLocation(self); - location here = locations.getGoodLocationAroundLocation(me, 1f, 1f, 1.5f, 1.5f); + /*location here = locations.getGoodLocationAroundLocation(me, 1f, 1f, 1.5f, 1.5f); if (here == null) { debugServerConsoleMsg (self, "guard_spawner couldn't find a good location"); return; } + */ string spawn = npcToSpawn( type ); - obj_id npc = create.object( spawn, here ); + obj_id npc = create.object( spawn, me ); if ( !isIdValid(npc) ) { - logScriptDataError("unable to spawn " + spawn + " + at loc " + here ); + logScriptDataError("unable to spawn " + spawn + " + at loc " + me ); return; } attachScript (npc, "city.guard_wander");