aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-23 00:12:29 -0500
committermegamage <none@none>2009-04-23 00:12:29 -0500
commitbce871f253d65da99f298c7eaf798b61c8c31369 (patch)
treeb39c1e74cd31a49186b0b272509d905f8fb50b81 /src/game/Object.cpp
parentf5fff5b186cffe7de4853897ba95cd8d08038d56 (diff)
*Fix a client crash caused by transport.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r--src/game/Object.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp
index 0739f89db2c..0575ef6623a 100644
--- a/src/game/Object.cpp
+++ b/src/game/Object.cpp
@@ -270,10 +270,6 @@ void Object::_BuildMovementUpdate(ByteBuffer * data, uint8 flags) const
{
case TYPEID_UNIT:
{
- if(((Unit*)this)->m_Vehicle)
- flags2 |= MOVEMENTFLAG_ONTRANSPORT;
- else
- flags2 &= ~MOVEMENTFLAG_ONTRANSPORT;
flags2 &= ~MOVEMENTFLAG_SPLINE2;
if(((Creature*)this)->isVehicle())
((Unit*)this)->m_movementInfo.unk1 |= 0x20; // always allow pitch
@@ -281,11 +277,6 @@ void Object::_BuildMovementUpdate(ByteBuffer * data, uint8 flags) const
break;
case TYPEID_PLAYER:
{
- if(((Player*)this)->GetTransport() || ((Player*)this)->m_Vehicle)
- flags2 |= MOVEMENTFLAG_ONTRANSPORT;
- else
- flags2 &= ~MOVEMENTFLAG_ONTRANSPORT;
-
// remove unknown, unused etc flags for now
flags2 &= ~MOVEMENTFLAG_SPLINE2; // will be set manually