Demon Slayer 4, 'Recruit Tracker'    (WIP)

Everything is working well, excepts for getting NPCs to spawn in the correct position.  It appears that I screwed something up in mission_start.cpp or the functions I'm using have a limited range.  Currently it always spawns the npc at -3,-3 from your location.

The code in question is:
 temp->spawn_at(g->cur_om, site.x, site.y, 0);
 temp->place_near(g, 0, 0);

The mission is supposed to spawn an NPC in the closest available cabin (site.x,site.y) and the basic goal is to get said NPC in your party.  It is fairly simply since the NPC has a separate mission to join your party, avoiding the 'I kill everyone' type NPC's that tend to spawn.  There isn't anything that is supposed to make this mission hard (you barely get a reward for the mission) but getting NPC spawning right is something that comes up more and more in advanced mission so I had to start somewhere.  

[This version for debugging, the starting NPC can have the mission]