cl.maxclients = MSG_ReadByte ();
if (cl.maxclients < 1 || cl.maxclients > MAX_SCOREBOARD)
{
- Con_Printf("Bad maxclients (%u) from server\n", cl.maxclients);
+ Host_Error("Bad maxclients (%u) from server\n", cl.maxclients);
return;
}
Mem_EmptyPool(cl_scores_mempool);
// check memory integrity
Mem_CheckSentinelsGlobal();
+ S_StopAllSounds();
+ // if server is active, we already began a loading plaque
+ if (!sv.active)
+ SCR_BeginLoadingPlaque();
+
// disable until we get textures for it
R_ResetSkyBox();
if (cmd_source != src_command)
return;
- SCR_BeginLoadingPlaque ();
cls.demonum = -1; // stop demo loop in case this fails
CL_Disconnect ();
key_consoleactive = 0;
SV_SaveSpawnparms ();
- SCR_BeginLoadingPlaque();
allowcheats = sv_cheats.integer != 0;
strcpy(level, Cmd_Argv(1));
SV_SpawnServer(level);
key_dest = key_game;
key_consoleactive = 0;
- SCR_BeginLoadingPlaque();
allowcheats = sv_cheats.integer != 0;
strcpy(mapname, sv.name);
SV_SpawnServer(mapname);
//Con_Print("reconnect: no signon, ignoring reconnect\n");
return;
}
- SCR_BeginLoadingPlaque();
cls.signon = 0; // need new connection messages
}
return;
}
- SCR_BeginLoadingPlaque ();
-
str = FS_Getline (f);
for (i = 0;i < NUM_SPAWN_PARMS;i++)
{
Con_DPrintf("SpawnServer: %s\n", server);
+ if (cls.state != ca_dedicated)
+ SCR_BeginLoadingPlaque();
+
snprintf (modelname, sizeof(modelname), "maps/%s.bsp", server);
worldmodel = Mod_ForName(modelname, false, true, true);
if (!worldmodel || !worldmodel->TraceBox)