diff options
| author | Shauren <shauren.trinity@gmail.com> | 2013-04-09 17:24:39 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2013-04-09 17:24:39 +0200 |
| commit | 12a828fdbc01b9fca817829f9da3be2cf8cedf46 (patch) | |
| tree | bedf2c3cf036f4e56635f4e41c41b4e72f9418a3 /src/server/scripts/Spells | |
| parent | c34fd8d862fa85e8e1ed9d6abac349647f6cc082 (diff) | |
Core/Movement
* Implemented a generic way of sending movement packets depending on who controls the unit (player or server controlled)
* Added possibility to specify extra elements in movement packets (such as speed, extra passenger guid, collision height and similar) without having to add a special element only for these
* Removed Unit::SendMovementFlagUpdate as it was something working only in 3.3.5a and earlier (no serverside HEARTBEAT opcode exists now)
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 0c9817ba167..a8407525a1b 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, 62832.0f) / 10000.0f); } void Register() |
