Update StarNpc.cpp
This commit is contained in:
parent
aa220e7947
commit
c090b935ac
@ -257,7 +257,7 @@ pair<ByteArray, uint64_t> Npc::writeNetState(uint64_t fromVersion) {
|
|||||||
if (auto mode = entityMode()) {
|
if (auto mode = entityMode()) {
|
||||||
if (*mode == EntityMode::Master && connectionForEntity(entityId()) != ServerConnectionId) {
|
if (*mode == EntityMode::Master && connectionForEntity(entityId()) != ServerConnectionId) {
|
||||||
PolyF poly = m_movementController->collisionPoly();
|
PolyF poly = m_movementController->collisionPoly();
|
||||||
m_movementController->setCollisionPoly({});
|
m_movementController->setCollisionPoly({ { 0.0f, -FLT_MAX } });
|
||||||
auto result = m_netGroup.writeNetState(fromVersion);
|
auto result = m_netGroup.writeNetState(fromVersion);
|
||||||
m_movementController->setCollisionPoly(poly);
|
m_movementController->setCollisionPoly(poly);
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user