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;
- strcpy (sv_spawnmap, sv.name);
+ sv_restartmap = true;
}
/*
if (sv.active && cls.state != ca_dedicated)
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;
}
//=============================================================================