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
@@ -251,8 +251,8 @@ void unregister_spell_event(int evt, int spell_id) {
}
Lua_Mob lua_spawn2(int npc_type, int grid, int unused, double x, double y, double z, double heading) {
return Lua_Mob(quest_manager.spawn2(npc_type, grid, unused,
static_cast<float>(x), static_cast<float>(y), static_cast<float>(z), static_cast<float>(heading)));
auto position = xyz_heading(x, y, z, heading);
return Lua_Mob(quest_manager.spawn2(npc_type, grid, unused, position));
}
Lua_Mob lua_unique_spawn(int npc_type, int grid, int unused, double x, double y, double z, double heading = 0.0) {