diff options
author | Shauren <shauren.trinity@gmail.com> | 2013-06-30 16:31:24 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2013-06-30 16:31:24 +0200 |
commit | 112bc49c9a22a6998a9829940a72bfb3b4778bb9 (patch) | |
tree | d8b1a367d9ebc95275169c0cb3d5ecd3dc14d59c /src/server/scripts/Spells | |
parent | b3bdcc61ee757fd01a3356cd8b1b2f11e2ca712a (diff) |
Core/Units: Removed most calls to SendMovementFlagUpdate for creatures
Diffstat (limited to 'src/server/scripts/Spells')
-rw-r--r-- | src/server/scripts/Spells/spell_item.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp index 05111d4763f..c61a547d2c3 100644 --- a/src/server/scripts/Spells/spell_item.cpp +++ b/src/server/scripts/Spells/spell_item.cpp @@ -2293,8 +2293,7 @@ class spell_item_unusual_compass : public SpellScriptLoader void HandleDummy(SpellEffIndex /* effIndex */) { Unit* caster = GetCaster(); - caster->SetOrientation(frand(0.0f, 62832.0f) / 10000.0f); - caster->SendMovementFlagUpdate(true); + caster->SetFacingTo(frand(0.0f, 2.0f * M_PI)); } void Register() |