engine: server: allow starting game from custom map

This commit is contained in:
Alibek Omarov 2024-02-22 03:07:51 +03:00
parent 827c9ca857
commit 8afca1a79c

View File

@ -368,13 +368,12 @@ SV_NewGame_f
*/
static void SV_NewGame_f( void )
{
if( Cmd_Argc() != 1 )
{
if( Cmd_Argc() == 1 )
COM_NewGame( GI->startmap );
else if( Cmd_Argc() == 2 )
COM_NewGame( Cmd_Argv( 1 ));
else
Con_Printf( S_USAGE "newgame\n" );
return;
}
COM_NewGame( GI->startmap );
}
/*