forked from mirror/OpenTTD
(svn r2298) - CodeChange: removed CmdAbuses: CmdSetTownNameType(), CmdStartNewGame(), CmdCreateScenario(), CmdSetNewLandscapeType() and CmdGenRandomNewGame().
- CodeChange: renamed CmdTrainGotoDepot() to CmdSendTrainToDepot() to be consistent with other depot commands. - CodeChange: 'newgame' console command now calls the unabused GenRandomNewGame(). For the server it still creates a new game, a client quits the game and continues in SP. - CodeChange: in the game-difficulty window, setup the disabled buttons on window creation, not every redraw.
This commit is contained in:
@@ -712,15 +712,11 @@ DEF_CONSOLE_CMD(ConNewGame)
|
||||
{
|
||||
if (argc == 0) {
|
||||
IConsoleHelp("Start a new game. Usage: 'newgame'");
|
||||
IConsoleHelp("The server can force a new game using 'newgame', any client using it will part and start a single-player game");
|
||||
return true;
|
||||
}
|
||||
|
||||
_docommand_recursive = 0;
|
||||
|
||||
_random_seeds[0][0] = Random();
|
||||
_random_seeds[0][1] = InteractiveRandom();
|
||||
|
||||
SwitchMode(SM_NEWGAME);
|
||||
GenRandomNewGame(Random(), InteractiveRandom());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user