mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-11 09:58:05 +00:00
breakout possessor from char comp (#606)
* breakout possessor from char comp Use the correct component for possessor cleanup scirps that were using possessor improperly beginnings of mounts * fix comments added bounds check
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
#include "InventoryComponent.h"
|
||||
#include "ControllablePhysicsComponent.h"
|
||||
#include "EntityManager.h"
|
||||
#include "PossessorComponent.h"
|
||||
#include "VehiclePhysicsComponent.h"
|
||||
#include "GameMessages.h"
|
||||
#include "Item.h"
|
||||
@@ -81,13 +80,6 @@ CharacterComponent::~CharacterComponent() {
|
||||
}
|
||||
|
||||
void CharacterComponent::Serialize(RakNet::BitStream* outBitStream, bool bIsInitialUpdate, unsigned int& flags) {
|
||||
outBitStream->Write(m_IsRacing);
|
||||
if (m_IsRacing) {
|
||||
outBitStream->Write1();
|
||||
outBitStream->Write(m_VehicleObjectID);
|
||||
outBitStream->Write<uint8_t>(0);
|
||||
}
|
||||
|
||||
outBitStream->Write1();
|
||||
outBitStream->Write(m_Level);
|
||||
outBitStream->Write0();
|
||||
|
Reference in New Issue
Block a user