From 9f3d1a4a3b86e7f97676580985c7d9668aa9daf1 Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 15 Aug 2009 22:48:52 -0500 Subject: [PATCH] *Fix the bug that player sometimes take fall damage when exit vehicle. --HG-- branch : trunk --- src/game/Unit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 038a8cdcb1..179b1104ac 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -14643,6 +14643,7 @@ void Unit::ExitVehicle() { //((Player*)this)->SetClientControl(this, 1); ((Player*)this)->SendTeleportAckMsg(); + ((Player*)this)->SetFallInformation(0, GetPositionZ()); } WorldPacket data; BuildHeartBeatMsg(&data);