From d156e066cfa8be95031aff31ab7b6aa905e12839 Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 10 Oct 2011 17:08:01 -0400 Subject: Rename "SetPosition" to "UpdatePosition". Replace CreatureRelocation in scripts with new Creature::SetPosition. --- src/server/scripts/Commands/cs_npc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/scripts/Commands') diff --git a/src/server/scripts/Commands/cs_npc.cpp b/src/server/scripts/Commands/cs_npc.cpp index cdb87fde354..63b5ff97afb 100644 --- a/src/server/scripts/Commands/cs_npc.cpp +++ b/src/server/scripts/Commands/cs_npc.cpp @@ -623,7 +623,7 @@ public: const_cast(data)->posZ = z; const_cast(data)->orientation = o; } - creature->GetMap()->CreatureRelocation(creature, x, y, z, o); + creature->SetPosition(x, y, z, o); creature->GetMotionMaster()->Initialize(); if (creature->isAlive()) // dead creature will reset movement generator at respawn { -- cgit v1.2.3