We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b698ee0 + 3b013dd commit fa2fc83Copy full SHA for fa2fc83
Server/mods/deathmatch/logic/packets/CPlayerPuresyncPacket.cpp
@@ -101,6 +101,13 @@ bool CPlayerPuresyncPacket::Read(NetBitStreamInterface& BitStream)
101
}
102
103
104
+ // If the client reported contact but the element doesn't exist anymore,
105
+ // the coordinates become invalid as they are relative to that element.
106
+ if (positionRead && pContactElement == nullptr && flags.data.bHasContact)
107
+ {
108
+ position.data.vecPosition = pSourcePlayer->GetPosition();
109
+ }
110
+
111
CElement* pPreviousContactElement = pSourcePlayer->GetContactElement();
112
pSourcePlayer->SetContactElement(pContactElement);
113
0 commit comments