diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-23 20:27:51 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-06-23 20:27:51 +1000 |
commit | 4328119e1c1f8578a92977a943a793b2ac9032e0 (patch) | |
tree | f0171de6754a159a8901d58324d4f6abc6477615 /source/game/StarWorldServer.cpp | |
parent | e64aabfcf1237639fa5d53ed7e02c3a6510f4a0c (diff) |
Proper fix for non-master player rotation resetting on load
Diffstat (limited to 'source/game/StarWorldServer.cpp')
-rw-r--r-- | source/game/StarWorldServer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/StarWorldServer.cpp b/source/game/StarWorldServer.cpp index 417c718..a9b154e 100644 --- a/source/game/StarWorldServer.cpp +++ b/source/game/StarWorldServer.cpp @@ -392,8 +392,8 @@ void WorldServer::handleIncomingPackets(ConnectionId clientId, List<PacketPtr> c } auto entity = entityFactory->netLoadEntity(entityCreate->entityType, entityCreate->storeData); - entity->init(this, entityCreate->entityId, EntityMode::Slave); entity->readNetState(entityCreate->firstNetState); + entity->init(this, entityCreate->entityId, EntityMode::Slave); m_entityMap->addEntity(entity); if (clientInfo->interpolationTracker.interpolationEnabled()) |