diff options
| author | ccrs <ccrs@users.noreply.github.com> | 2017-05-02 14:18:42 +0200 |
|---|---|---|
| committer | ccrs <ccrs@users.noreply.github.com> | 2017-05-02 14:18:42 +0200 |
| commit | 17579f8d91e0dcc6990fe581de9ca51ed444b754 (patch) | |
| tree | d855acf7caa87fdfdf5f8e3174db41cb21aebbfa /src/server/scripts/Commands | |
| parent | dd2151cc7a6a92c4103560609517e32220e51950 (diff) | |
Core/Creature: drop method SetPosition
eeeevil, use UpdatePosition. It was there just for old scripts compatibility.
Diffstat (limited to 'src/server/scripts/Commands')
| -rw-r--r-- | src/server/scripts/Commands/cs_npc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Commands/cs_npc.cpp b/src/server/scripts/Commands/cs_npc.cpp index d201469a0ef..e037eff5bbc 100644 --- a/src/server/scripts/Commands/cs_npc.cpp +++ b/src/server/scripts/Commands/cs_npc.cpp @@ -823,7 +823,7 @@ public: const_cast<CreatureData*>(data)->posZ = z; const_cast<CreatureData*>(data)->orientation = o; } - creature->SetPosition(x, y, z, o); + creature->UpdatePosition(x, y, z, o); creature->GetMotionMaster()->Initialize(); if (creature->IsAlive()) // dead creature will reset movement generator at respawn { |
