From 12a828fdbc01b9fca817829f9da3be2cf8cedf46 Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 9 Apr 2013 17:24:39 +0200 Subject: 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) --- src/server/game/Scripting/MapScripts.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/server/game/Scripting/MapScripts.cpp') 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; -- cgit v1.2.3