mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Resolve ring-racers#64
This commit is contained in:
parent
6eae1715a0
commit
7152217faa
4 changed files with 7 additions and 1 deletions
|
|
@ -1587,6 +1587,7 @@ static void SendAskInfo(INT32 node)
|
||||||
serverelem_t serverlist[MAXSERVERLIST];
|
serverelem_t serverlist[MAXSERVERLIST];
|
||||||
UINT32 serverlistcount = 0;
|
UINT32 serverlistcount = 0;
|
||||||
UINT32 serverlistultimatecount = 0;
|
UINT32 serverlistultimatecount = 0;
|
||||||
|
boolean serverlistmode = false;
|
||||||
|
|
||||||
static boolean resendserverlistnode[MAXNETNODES];
|
static boolean resendserverlistnode[MAXNETNODES];
|
||||||
static tic_t serverlistepoch;
|
static tic_t serverlistepoch;
|
||||||
|
|
@ -1657,7 +1658,7 @@ static boolean SL_InsertServer(serverinfo_pak* info, SINT8 node)
|
||||||
if (i == UINT32_MAX)
|
if (i == UINT32_MAX)
|
||||||
{
|
{
|
||||||
// Still not added to list... check for modifiedgame rejections
|
// Still not added to list... check for modifiedgame rejections
|
||||||
if (serverlistultimatecount)
|
if (serverlistmode)
|
||||||
{
|
{
|
||||||
// We're on the server browser page. We can reject based on our room.
|
// We're on the server browser page. We can reject based on our room.
|
||||||
if (
|
if (
|
||||||
|
|
|
||||||
|
|
@ -508,6 +508,7 @@ struct serverelem_t
|
||||||
|
|
||||||
extern serverelem_t serverlist[MAXSERVERLIST];
|
extern serverelem_t serverlist[MAXSERVERLIST];
|
||||||
extern UINT32 serverlistcount, serverlistultimatecount;
|
extern UINT32 serverlistcount, serverlistultimatecount;
|
||||||
|
extern boolean serverlistmode;
|
||||||
extern INT32 mapchangepending;
|
extern INT32 mapchangepending;
|
||||||
|
|
||||||
// Points inside doomcom
|
// Points inside doomcom
|
||||||
|
|
|
||||||
|
|
@ -1209,6 +1209,7 @@ void D_ClearState(void)
|
||||||
SV_StopServer();
|
SV_StopServer();
|
||||||
SV_ResetServer();
|
SV_ResetServer();
|
||||||
serverlistultimatecount = 0;
|
serverlistultimatecount = 0;
|
||||||
|
serverlistmode = false;
|
||||||
|
|
||||||
for (i = 0; i < MAXPLAYERS; i++)
|
for (i = 0; i < MAXPLAYERS; i++)
|
||||||
CL_ClearPlayer(i);
|
CL_ClearPlayer(i);
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ void M_ServerListFillDebug(void);
|
||||||
static boolean M_ServerBrowserQuit(void)
|
static boolean M_ServerBrowserQuit(void)
|
||||||
{
|
{
|
||||||
serverlistultimatecount = 0;
|
serverlistultimatecount = 0;
|
||||||
|
serverlistmode = false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -240,6 +241,8 @@ void M_ServersMenu(INT32 choice)
|
||||||
// modified game check: no longer handled
|
// modified game check: no longer handled
|
||||||
// we don't request a restart unless the filelist differs
|
// we don't request a restart unless the filelist differs
|
||||||
|
|
||||||
|
serverlistmode = true;
|
||||||
|
|
||||||
CL_UpdateServerList();
|
CL_UpdateServerList();
|
||||||
|
|
||||||
mpmenu.ticker = 0;
|
mpmenu.ticker = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue