aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Scripting/MapScripts.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2013-04-09 17:24:39 +0200
committerShauren <shauren.trinity@gmail.com>2013-04-09 17:24:39 +0200
commit12a828fdbc01b9fca817829f9da3be2cf8cedf46 (patch)
treebedf2c3cf036f4e56635f4e41c41b4e72f9418a3 /src/server/game/Scripting/MapScripts.cpp
parentc34fd8d862fa85e8e1ed9d6abac349647f6cc082 (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/game/Scripting/MapScripts.cpp')
-rw-r--r--src/server/game/Scripting/MapScripts.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/server/game/Scripting/MapScripts.cpp b/src/server/game/Scripting/MapScripts.cpp
index d36e351ba9d..cb6b1453a46 100644
--- a/src/server/game/Scripting/MapScripts.cpp
+++ b/src/server/game/Scripting/MapScripts.cpp
@@ -886,12 +886,10 @@ void Map::ScriptsProcess()
if (!targetUnit)
break;
- sourceUnit->SetInFront(targetUnit);
+ sourceUnit->SetFacingToObject(targetUnit);
}
else
- sourceUnit->SetOrientation(step.script->Orientation.Orientation);
-
- sourceUnit->SendMovementFlagUpdate();
+ sourceUnit->SetFacingTo(step.script->Orientation.Orientation);
}
break;