From c9c0c06763701f25faeffa88c69f0f107b446cf6 Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 6 Sep 2024 20:36:20 +0200 Subject: [PATCH] reserve saturn packet even if unused to not cause any weird isssues if either one is undefined and stuff like that --- src/d_clisrv.h | 5 ++--- src/d_net.c | 12 ++++++------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/d_clisrv.h b/src/d_clisrv.h index 5376abc43..bd4d25c8a 100644 --- a/src/d_clisrv.h +++ b/src/d_clisrv.h @@ -99,13 +99,12 @@ typedef enum PT_PING, // Packet sent to tell clients the other client's latency to server. -#ifdef SATURNPAK - PT_ISSATURN, -#endif #ifdef SATURNSYNCH PT_WILLRESENDGAMESTATE, // Hey Client, I am about to resend you the gamestate! PT_CANRECEIVEGAMESTATE, // Okay Server, I'm ready to receive it, you can go ahead. PT_RECEIVEDGAMESTATE, // Thank you Server, I am ready to play again! + + PT_ISSATURN, #endif NUMPACKETTYPE diff --git a/src/d_net.c b/src/d_net.c index 4731ffcc3..e73a120ab 100644 --- a/src/d_net.c +++ b/src/d_net.c @@ -832,15 +832,15 @@ const char *packettypename[NUMPACKETTYPE] = "TELLFILESNEEDED", "MOREFILESNEEDED", - "PING", - -#ifdef SATURNPAK - "ISSATURN", -#endif + "PING" #ifdef SATURNSYNCH + , + "WILLRESENDGAMESTATE", "CANRECEIVEGAMESTATE", - "RECEIVEDGAMESTATE" + "RECEIVEDGAMESTATE", + + "ISSATURN" #endif };