Fixed spawner issue

This commit is contained in:
PrisonCamp
2014-12-23 02:02:53 -08:00
parent 6c28f75490
commit 005e8bf148
@@ -95,15 +95,17 @@ void doSpawn (obj_id self)
int maxPop = getIntObjVar (self, "pop");
location me = getLocation(self);
location here = locations.getGoodLocationAroundLocation(me, 10f, 10f, 10f, 10f);
/*location here = locations.getGoodLocationAroundLocation(me, 10f, 10f, 10f, 10f);
if (here == null)
{
debugServerConsoleMsg (self, "jawa_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.jawa_wander");
setInvulnerable(npc, true);
@@ -183,4 +185,4 @@ string npcToSpawn()
}
return spawn;
}
}