From 8a28d3cfe5ebefae04b67548b26048e95b6d0ac4 Mon Sep 17 00:00:00 2001 From: James R Date: Sat, 21 Mar 2020 13:12:50 -0700 Subject: [PATCH] Replace some instances of int with fixed width types --- src/d_clisrv.c | 4 ++-- src/d_netcmd.c | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 98476fe50..eadff6726 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -84,7 +84,7 @@ static boolean serverrunning = false; INT32 serverplayer = 0; char motd[254], server_context[8]; // Message of the Day, Unique Context (even without Mumble support) -int playerconsole[MAXPLAYERS]; +UINT8 playerconsole[MAXPLAYERS]; // Server specific vars UINT8 playernode[MAXPLAYERS]; @@ -3491,7 +3491,7 @@ static inline void SV_AddNode(INT32 node) static void Got_AddPlayer(UINT8 **p, INT32 playernum) { INT16 node, newplayernum; - int console; + UINT8 console; UINT8 splitscreenplayer = 0; UINT8 i; diff --git a/src/d_netcmd.c b/src/d_netcmd.c index fbd51ebd1..6814bacce 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -2006,12 +2006,10 @@ static void Got_PowerLevel(UINT8 **cp,INT32 playernum) static void Got_PartyInvite(UINT8 **cp,INT32 playernum) { - int invitee; + UINT8 invitee; boolean kick = false; - invitee = READUINT8 (*cp); - if ( invitee >= 0 && invitee < MAXPLAYERS &&