mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 09:06:55 -04:00
When disconnecting from server due to invalid opcode, also include opcode of last valid packet in message
This commit is contained in:
parent
a819ca770f
commit
1ee9e86502
@ -365,7 +365,7 @@ static void DisconnectInvalidOpcode(cc_uint8 opcode) {
|
||||
String tmp; char tmpBuffer[STRING_SIZE];
|
||||
String_InitArray(tmp, tmpBuffer);
|
||||
|
||||
String_Format1(&tmp, "Server sent invalid packet %b!", &opcode);
|
||||
String_Format2(&tmp, "Server sent invalid packet %b! (prev %b)", &opcode, &net_lastOpcode);
|
||||
Game_Disconnect(&title, &tmp); return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user