diff options
| author | megamage <none@none> | 2009-08-23 00:38:19 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-08-23 00:38:19 -0500 |
| commit | 7c720763558fbf4a35755b6055e6a127326834a5 (patch) | |
| tree | aebd13661feacd994e4ccf0775bcd8d088d4e630 /src/game/MovementHandler.cpp | |
| parent | 21ffda7eaf9596dab4e8f14aeda65d9d032fac71 (diff) | |
*Fix the bug that some vehicles cannot fly.
--HG--
branch : trunk
Diffstat (limited to 'src/game/MovementHandler.cpp')
| -rw-r--r-- | src/game/MovementHandler.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/MovementHandler.cpp b/src/game/MovementHandler.cpp index f518c7f4da4..04033050b40 100644 --- a/src/game/MovementHandler.cpp +++ b/src/game/MovementHandler.cpp @@ -459,7 +459,16 @@ void WorldSession::HandleSetActiveMoverOpcode(WorldPacket &recv_data) return; if(Unit *mover = ObjectAccessor::GetUnit(*GetPlayer(), guid)) + { GetPlayer()->SetMover(mover); + if(mover != GetPlayer() && mover->canFly()) + { + WorldPacket data(SMSG_MOVE_SET_CAN_FLY, 12); + data.append(mover->GetPackGUID()); + data << uint32(0); + SendPacket(&data); + } + } else { sLog.outError("HandleSetActiveMoverOpcode: incorrect mover guid: mover is " I64FMT " and should be " I64FMT, guid, _player->m_mover->GetGUID()); |
