QuestManager::spawn2 converted to xyz_heading

This commit is contained in:
Arthur Ice
2014-12-02 13:26:55 -08:00
parent 0ad62461f0
commit 2e0cfa86bf
4 changed files with 9 additions and 14 deletions
+2 -2
View File
@@ -241,11 +241,11 @@ void QuestManager::write(const char *file, const char *str) {
fclose (pFile);
}
Mob* QuestManager::spawn2(int npc_type, int grid, int unused, float x, float y, float z, float heading) {
Mob* QuestManager::spawn2(int npc_type, int grid, int unused, const xyz_heading& position) {
const NPCType* tmp = 0;
if (tmp = database.GetNPCType(npc_type))
{
NPC* npc = new NPC(tmp, nullptr, xyz_heading(x, y, z, heading), FlyMode3);
NPC* npc = new NPC(tmp, nullptr, position, FlyMode3);
npc->AddLootTable();
entity_list.AddNPC(npc,true,true);
if(grid > 0)