Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarWorldClient.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2025-01-05 15:21:59 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2025-01-05 15:21:59 +1100
commit57a5afa13a027429c2758582ba1f581d0272fcc4 (patch)
treea5e23e7b3a5cb7167228679390313adb4935c503 /source/game/StarWorldClient.cpp
parentc47bceb3f3ea0d041f3a6cb053f932c00c39f396 (diff)
fix net compat rules not being considered in client netLoad
Diffstat (limited to 'source/game/StarWorldClient.cpp')
-rw-r--r--source/game/StarWorldClient.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/game/StarWorldClient.cpp b/source/game/StarWorldClient.cpp
index 6f0f2af..efc2eb7 100644
--- a/source/game/StarWorldClient.cpp
+++ b/source/game/StarWorldClient.cpp
@@ -771,8 +771,9 @@ void WorldClient::handleIncomingPackets(List<PacketPtr> const& packets) {
removeEntity(entityCreate->entityId, false);
}
- auto entity = entityFactory->netLoadEntity(entityCreate->entityType, entityCreate->storeData);
- entity->readNetState(entityCreate->firstNetState, 0.0f, m_clientState.netCompatibilityRules());
+ auto netRules = m_clientState.netCompatibilityRules();
+ auto entity = entityFactory->netLoadEntity(entityCreate->entityType, entityCreate->storeData, netRules);
+ entity->readNetState(entityCreate->firstNetState, 0.0f, netRules);
entity->init(this, entityCreate->entityId, EntityMode::Slave);
m_entityMap->addEntity(entity);