Merge branch 'fix-allowjoin' into 'next'

Delete singleplayer

See merge request STJr/SRB2!870
This commit is contained in:
SteelT 2020-03-31 20:45:02 -04:00
commit 6620364158

View file

@ -1338,7 +1338,7 @@ static void SV_SendServerInfo(INT32 node, tic_t servertime)
netbuffer->u.serverinfo.numberofplayer = (UINT8)D_NumPlayers(); netbuffer->u.serverinfo.numberofplayer = (UINT8)D_NumPlayers();
netbuffer->u.serverinfo.maxplayer = (UINT8)cv_maxplayers.value; netbuffer->u.serverinfo.maxplayer = (UINT8)cv_maxplayers.value;
if (FindRejoinerNum(node) != -1) if (!node || FindRejoinerNum(node) != -1)
netbuffer->u.serverinfo.refusereason = 0; netbuffer->u.serverinfo.refusereason = 0;
else if (!cv_allownewplayer.value) else if (!cv_allownewplayer.value)
netbuffer->u.serverinfo.refusereason = 1; netbuffer->u.serverinfo.refusereason = 1;