engine/EngineHostCommand.c
/*	Restarts the current server for a dead player
*/
Restarts the current server for a dead player
Restarts the current server for a dead player
void Host_Restart_f (void)
{
	char	mapname[MAX_QPATH];
	if (cls.demoplayback || !sv.active)
		return;
	else if (cmd_source != src_command)
		return;
	strcpy(mapname, sv.name);	
	SV_SpawnServer (mapname);
}
void Host_Restart_f ( void ) { char mapname [ MAX_QPATH ] ; if ( cls . demoplayback || ! sv . active ) return ; else if ( cmd_source != src_command ) return ; strcpy ( mapname , sv . name ) ; SV_SpawnServer ( mapname ) ; }
Restarts the current server for a dead player
Restarts the current server for a dead player
// must copy out, because it gets cleared // in sv_spawnserver