int current_skill;
char sv_spawnmap[MAX_QPATH];
char sv_loadgame[MAX_OSPATH];
-int sv_restartmap;
dfunction_t *ED_FindFunction (char *name);
if (cmd_source != src_command)
return;
- sv_restartmap = true;
+ strcpy (sv_spawnmap, sv.name);
}
/*
else if (sv_spawnmap[0])
{
SV_SpawnServer(sv_spawnmap);
- if (sv.active && cls.state != ca_dedicated)
+ if (sv.active && cls.state == ca_disconnected)
Cmd_ExecuteString ("connect local", src_command);
}
- else if (sv_restartmap)
- {
- strcpy(sv_spawnmap, sv.name);
- SV_SpawnServer(sv_spawnmap);
- }
sv_loadgame[0] = 0;
sv_spawnmap[0] = 0;
- sv_restartmap = 0;
}
//=============================================================================