Still allow random map to work with the comment
This commit is contained in:
parent
080ace7b91
commit
4a00cce049
1 changed files with 9 additions and 8 deletions
|
|
@ -4136,6 +4136,7 @@ static void Got_Mapcmd(UINT8 **cp, INT32 playernum)
|
|||
static void Command_RandomMap(void)
|
||||
{
|
||||
CONS_Printf("randommap is deprecated, please use \"map -random\" instead.\n");
|
||||
COM_ImmedExecute("map -r");
|
||||
}
|
||||
|
||||
static void Command_RestartLevel(void)
|
||||
|
|
@ -6722,11 +6723,11 @@ static void Command_Showmap_f(void)
|
|||
|
||||
if (option_random)
|
||||
{
|
||||
UINT8 numPlayers = 0;
|
||||
//UINT8 numPlayers = 0;
|
||||
UINT16 oldmapnum = UINT16_MAX;
|
||||
if (Playing())
|
||||
{
|
||||
UINT8 i;
|
||||
/*UINT8 i;
|
||||
for (i = 0; i < MAXPLAYERS; ++i)
|
||||
{
|
||||
if (!playeringame[i] || players[i].spectator)
|
||||
|
|
@ -6743,7 +6744,7 @@ static void Command_Showmap_f(void)
|
|||
}
|
||||
|
||||
numPlayers++;
|
||||
}
|
||||
}*/
|
||||
|
||||
oldmapnum = (gamestate == GS_LEVEL)
|
||||
? (gamemap-1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue