maybe fix it

This commit is contained in:
Aaron Kimbre 2022-05-19 08:40:50 -05:00
parent 813aca9d20
commit 06df15717c

View File

@ -35,8 +35,8 @@ SimplePhysicsComponent::~SimplePhysicsComponent() {
void SimplePhysicsComponent::Serialize(RakNet::BitStream* outBitStream, bool bIsInitialUpdate, unsigned int& flags) { void SimplePhysicsComponent::Serialize(RakNet::BitStream* outBitStream, bool bIsInitialUpdate, unsigned int& flags) {
if (bIsInitialUpdate) { if (bIsInitialUpdate) {
outBitStream->Write(m_ClimbableType > 0); outBitStream->Write(m_ClimbableType != eClimbableType::CLIMBABLE_TYPE_NOT);
outBitStream->Write<int32_t>(m_ClimbableType); outBitStream->Write(m_ClimbableType);
} }
outBitStream->Write(m_DirtyVelocity || bIsInitialUpdate); outBitStream->Write(m_DirtyVelocity || bIsInitialUpdate);