From 1ee9839bcb4aa31321a011595ceb557bee930ef1 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 24 Feb 2010 23:50:21 -0700 Subject: * Temporary fix for client freezes until the entire movement system can * get an overhaul. * Thanks to Biglad for pointing it out. --HG-- branch : trunk --- src/game/Unit.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 04f2081915e..a1c6a5d272d 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -14809,7 +14809,7 @@ void Unit::SetStunned(bool apply) SetUInt64Value(UNIT_FIELD_TARGET, 0); SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED); CastStop(); - AddUnitMovementFlag(MOVEMENTFLAG_ROOT); +// AddUnitMovementFlag(MOVEMENTFLAG_ROOT); // Creature specific if (GetTypeId() != TYPEID_PLAYER) @@ -14839,7 +14839,7 @@ void Unit::SetStunned(bool apply) data << uint32(0); SendMessageToSet(&data,true); - RemoveUnitMovementFlag(MOVEMENTFLAG_ROOT); +// RemoveUnitMovementFlag(MOVEMENTFLAG_ROOT); } } } @@ -14848,7 +14848,7 @@ void Unit::SetRooted(bool apply) { if (apply) { - AddUnitMovementFlag(MOVEMENTFLAG_ROOT); +// AddUnitMovementFlag(MOVEMENTFLAG_ROOT); WorldPacket data(SMSG_FORCE_MOVE_ROOT, 10); data.append(GetPackGUID()); @@ -14867,7 +14867,7 @@ void Unit::SetRooted(bool apply) data << (uint32)2; SendMessageToSet(&data,true); - RemoveUnitMovementFlag(MOVEMENTFLAG_ROOT); +// RemoveUnitMovementFlag(MOVEMENTFLAG_ROOT); } } } -- cgit v1.2.3