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.
1 parent 7c27c20 commit 3b013ddCopy full SHA for 3b013dd
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