moveto converted to xyz_heading

This commit is contained in:
Arthur Ice
2014-12-02 11:20:10 -08:00
parent 9d6a89c65d
commit 04e24ddce4
4 changed files with 6 additions and 7 deletions
+1 -2
View File
@@ -1553,12 +1553,11 @@ void QuestManager::pause(int duration) {
owner->CastToNPC()->PauseWandering(duration);
}
void QuestManager::moveto(float x, float y, float z, float h, bool saveguardspot) {
void QuestManager::moveto(const xyz_heading& position, bool saveguardspot) {
QuestManagerCurrentQuestVars();
if (!owner || !owner->IsNPC())
return;
auto position = xyz_heading(x,y,z,h);
owner->CastToNPC()->MoveTo(position, saveguardspot);
}