[c12628] Use TransportAnimation.dbc to check transport validity

This commit is contained in:
Dramacydal 2013-05-31 12:44:28 +01:00 committed by Antz
parent 988bad89e8
commit c47a6fa6ab
5 changed files with 96 additions and 6 deletions

View file

@ -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
}