From 48d071451e3e463942ab5bfa9466846eae83624a Mon Sep 17 00:00:00 2001 From: James R Date: Mon, 24 Aug 2020 19:48:11 -0700 Subject: [PATCH] servertics_pak.starttic -> UINT8 --- src/d_clisrv.c | 2 +- src/d_clisrv.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 5840f3005..56f7df18a 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -5387,7 +5387,7 @@ static void SV_SendTics(void) // Send the tics netbuffer->packettype = PT_SERVERTICS; - netbuffer->u.serverpak.starttic = realfirsttic; + netbuffer->u.serverpak.starttic = (UINT8)realfirsttic; netbuffer->u.serverpak.numtics = (UINT8)(lasttictosend - realfirsttic); netbuffer->u.serverpak.numslots = (UINT8)SHORT(doomcom->numslots); bufpos = (UINT8 *)&netbuffer->u.serverpak.cmds; diff --git a/src/d_clisrv.h b/src/d_clisrv.h index 390e23245..bca6a0721 100644 --- a/src/d_clisrv.h +++ b/src/d_clisrv.h @@ -167,7 +167,7 @@ typedef struct // this packet is too large typedef struct { - tic_t starttic; + UINT8 starttic; UINT8 numtics; UINT8 numslots; // "Slots filled": Highest player number in use plus one. ticcmd_t cmds[45]; // Normally [BACKUPTIC][MAXPLAYERS] but too large