Skip to content

Commit 9bfd7dc

Browse files
authored
Fix source code
1 parent ffef640 commit 9bfd7dc

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

Client/mods/deathmatch/logic/rpc/CElementRPCs.cpp

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -368,19 +368,9 @@ void CElementRPCs::DetachElements(CClientEntity* pSource, NetBitStreamInterface&
368368
bitStream.Read(vecPosition.fX);
369369
bitStream.Read(vecPosition.fY);
370370
bitStream.Read(vecPosition.fZ);
371-
372-
if (g_pNet->CanServerBitStream((eBitStreamVersion::DetachElementsRotation)))
373-
{
374-
bitStream.Read(vecRotation.fX);
375-
bitStream.Read(vecRotation.fY);
376-
bitStream.Read(vecRotation.fZ);
377-
}
378-
else
379-
{
380-
vecRotation.fX = 0;
381-
vecRotation.fY = 0;
382-
vecRotation.fZ = 0;
383-
}
371+
bitStream.Read(vecRotation.fX);
372+
bitStream.Read(vecRotation.fY);
373+
bitStream.Read(vecRotation.fZ);
384374

385375
CLuaArguments Arguments;
386376
Arguments.PushElement(pAttachedToEntity);

Shared/sdk/net/bitstream.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -540,10 +540,6 @@ enum class eBitStreamVersion : unsigned short
540540
// 2023-10-12
541541
CPlayerJoinCompletePacket_ServerName,
542542

543-
// Send rotation on detachElements
544-
// 2024-04-12
545-
DetachElementsRotation,
546-
547543
// Add "roadsignstext" to setWorldSpecialPropertyEnabled
548544
// 2024-05-17
549545
WorldSpecialProperty_RoadSignsText,

0 commit comments

Comments
 (0)