mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-14 13:51:31 +00:00
Convert caret color codes to SRB2 color codes
This commit is contained in:
parent
f802e9fbcb
commit
54c3aed86c
1 changed files with 3 additions and 0 deletions
|
@ -3951,6 +3951,7 @@ static void HandleTimeout(SINT8 node)
|
||||||
*/
|
*/
|
||||||
static void HandleServerInfo(SINT8 node)
|
static void HandleServerInfo(SINT8 node)
|
||||||
{
|
{
|
||||||
|
char servername[MAXSERVERNAME];
|
||||||
// compute ping in ms
|
// compute ping in ms
|
||||||
const tic_t ticnow = I_GetTime();
|
const tic_t ticnow = I_GetTime();
|
||||||
const tic_t ticthen = (tic_t)LONG(netbuffer->u.serverinfo.time);
|
const tic_t ticthen = (tic_t)LONG(netbuffer->u.serverinfo.time);
|
||||||
|
@ -3959,6 +3960,8 @@ static void HandleServerInfo(SINT8 node)
|
||||||
netbuffer->u.serverinfo.servername[MAXSERVERNAME-1] = 0;
|
netbuffer->u.serverinfo.servername[MAXSERVERNAME-1] = 0;
|
||||||
netbuffer->u.serverinfo.application
|
netbuffer->u.serverinfo.application
|
||||||
[sizeof netbuffer->u.serverinfo.application - 1] = '\0';
|
[sizeof netbuffer->u.serverinfo.application - 1] = '\0';
|
||||||
|
memcpy(servername, netbuffer->u.serverinfo.servername, MAXSERVERNAME);
|
||||||
|
CopyCaretColors(netbuffer->u.serverinfo.servername, servername, MAXSERVERNAME);
|
||||||
netbuffer->u.serverinfo.gametype = (UINT8)((netbuffer->u.serverinfo.gametype == VANILLA_GT_MATCH) ? GT_MATCH : GT_RACE);
|
netbuffer->u.serverinfo.gametype = (UINT8)((netbuffer->u.serverinfo.gametype == VANILLA_GT_MATCH) ? GT_MATCH : GT_RACE);
|
||||||
|
|
||||||
SL_InsertServer(&netbuffer->u.serverinfo, node);
|
SL_InsertServer(&netbuffer->u.serverinfo, node);
|
||||||
|
|
Loading…
Reference in a new issue