Skip to content

Commit f36696d

Browse files
new disconnect packet type isnt necessary
1 parent ac8c0a0 commit f36696d

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

Client/mods/deathmatch/logic/CPacketHandler.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -601,10 +601,6 @@ void CPacketHandler::Packet_ServerDisconnected(NetBitStreamInterface& bitStream)
601601
strReason = _("Disconnected: Server shutdown or restarting");
602602
strErrorCode = _E("CD49");
603603
break;
604-
case ePlayerDisconnectType::INVALID_SERIAL:
605-
strReason = _("Disconnected: Invalid serial");
606-
strErrorCode = _E("CD50");
607-
break;
608604
default:
609605
break;
610606
}

Client/mods/deathmatch/logic/CPacketHandler.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ class CPacketHandler
4242
BAN,
4343
KICK,
4444
CUSTOM,
45-
SHUTDOWN,
46-
INVALID_SERIAL,
45+
SHUTDOWN
4746
};
4847

4948
struct SEntityDependantStuff

Server/mods/deathmatch/logic/CGame.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1793,7 +1793,7 @@ void CGame::Packet_PlayerJoinData(CPlayerJoinDataPacket& Packet)
17931793
CLogger::LogPrintf("CONNECT: %s failed to connect (Invalid serial) (%s)\n", szNick, strIPAndSerial.c_str());
17941794

17951795
// Tell the player the problem
1796-
DisconnectPlayer(this, *pPlayer, CPlayerDisconnectedPacket::INVALID_SERIAL);
1796+
DisconnectPlayer(this, *pPlayer, CPlayerDisconnectedPacket::SERIAL_VERIFICATION);
17971797
return;
17981798
}
17991799

Server/mods/deathmatch/logic/packets/CPlayerDisconnectedPacket.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ class CPlayerDisconnectedPacket final : public CPacket
3939
BAN,
4040
KICK,
4141
CUSTOM,
42-
SHUTDOWN,
43-
INVALID_SERIAL
42+
SHUTDOWN
4443
};
4544

4645
CPlayerDisconnectedPacket(const char* szReason);

0 commit comments

Comments
 (0)