mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-30 13:00:54 +00:00
Merge branch 'compiler-garbage' into 'next'
Compiler garbage See merge request KartKrew/Kart-Public!91
This commit is contained in:
commit
a47470e1b1
2 changed files with 8 additions and 7 deletions
|
@ -4400,12 +4400,12 @@ FILESTAMP
|
||||||
//Update client ping table from the server.
|
//Update client ping table from the server.
|
||||||
if (client)
|
if (client)
|
||||||
{
|
{
|
||||||
INT32 i;
|
UINT8 i;
|
||||||
for (i = 0; i < MAXPLAYERS; i++)
|
for (i = 0; i < MAXPLAYERS; i++)
|
||||||
if (playeringame[i])
|
if (playeringame[i])
|
||||||
playerpingtable[i] = (tic_t)netbuffer->u.pingtable[i];
|
playerpingtable[i] = (tic_t)netbuffer->u.pingtable[i];
|
||||||
|
|
||||||
servermaxping = (tic_t)netbuffer->u.pingtable[i++];
|
servermaxping = (tic_t)netbuffer->u.pingtable[MAXPLAYERS];
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -5096,9 +5096,10 @@ static inline void PingUpdate(void)
|
||||||
pingtimeout[i]++;
|
pingtimeout[i]++;
|
||||||
if (pingtimeout[i] > cv_pingtimeout.value) // ok your net has been bad for too long, you deserve to die.
|
if (pingtimeout[i] > cv_pingtimeout.value) // ok your net has been bad for too long, you deserve to die.
|
||||||
{
|
{
|
||||||
pingtimeout[i] = 0;
|
|
||||||
XBOXSTATIC char buf[2];
|
XBOXSTATIC char buf[2];
|
||||||
|
|
||||||
|
pingtimeout[i] = 0;
|
||||||
|
|
||||||
buf[0] = (char)i;
|
buf[0] = (char)i;
|
||||||
buf[1] = KICK_MSG_PING_HIGH;
|
buf[1] = KICK_MSG_PING_HIGH;
|
||||||
SendNetXCmd(XD_KICK, &buf, 2);
|
SendNetXCmd(XD_KICK, &buf, 2);
|
||||||
|
@ -5121,7 +5122,7 @@ static inline void PingUpdate(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
// send the server's maxping as last element of our ping table. This is useful to let us know when we're about to get kicked.
|
// send the server's maxping as last element of our ping table. This is useful to let us know when we're about to get kicked.
|
||||||
netbuffer->u.pingtable[i++] = cv_maxping.value;
|
netbuffer->u.pingtable[MAXPLAYERS] = cv_maxping.value;
|
||||||
|
|
||||||
//send out our ping packets
|
//send out our ping packets
|
||||||
for (i = 0; i < MAXNETNODES; i++)
|
for (i = 0; i < MAXNETNODES; i++)
|
||||||
|
|
|
@ -452,10 +452,10 @@ typedef struct
|
||||||
serverrefuse_pak serverrefuse; // 65025 bytes (somehow I feel like those values are garbage...)
|
serverrefuse_pak serverrefuse; // 65025 bytes (somehow I feel like those values are garbage...)
|
||||||
askinfo_pak askinfo; // 61 bytes
|
askinfo_pak askinfo; // 61 bytes
|
||||||
msaskinfo_pak msaskinfo; // 22 bytes
|
msaskinfo_pak msaskinfo; // 22 bytes
|
||||||
plrinfo playerinfo[MAXPLAYERS]; // 1152 bytes (I'd say 36~38)
|
plrinfo playerinfo[MAXPLAYERS]; // 576 bytes(?)
|
||||||
plrconfig playerconfig[MAXPLAYERS]; // (up to) 896 bytes (welp they ARE)
|
plrconfig playerconfig[MAXPLAYERS]; // (up to) 528 bytes(?)
|
||||||
#ifdef NEWPING
|
#ifdef NEWPING
|
||||||
UINT32 pingtable[MAXPLAYERS]; // 128 bytes
|
UINT32 pingtable[MAXPLAYERS+1]; // 68 bytes
|
||||||
#endif
|
#endif
|
||||||
} u; // This is needed to pack diff packet types data together
|
} u; // This is needed to pack diff packet types data together
|
||||||
} ATTRPACK doomdata_t;
|
} ATTRPACK doomdata_t;
|
||||||
|
|
Loading…
Reference in a new issue