mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 10:37:02 +00:00
[c12628] Use TransportAnimation.dbc to check transport validity
This commit is contained in:
parent
988bad89e8
commit
c47a6fa6ab
5 changed files with 96 additions and 6 deletions
|
|
@ -720,6 +720,13 @@ void Object::BuildValuesUpdate(uint8 updatetype, ByteBuffer* data, UpdateMask* u
|
|||
*data << uint16(-1);
|
||||
}
|
||||
}
|
||||
else if (index == GAMEOBJECT_BYTES_1)
|
||||
{
|
||||
if (((GameObject*)this)->GetGOInfo()->type == GAMEOBJECT_TYPE_TRANSPORT)
|
||||
*data << uint32(m_uint32Values[index] | GO_STATE_TRANSPORT_SPEC);
|
||||
else
|
||||
*data << uint32(m_uint32Values[index]);
|
||||
}
|
||||
else
|
||||
*data << m_uint32Values[index]; // other cases
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue