mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-20 21:19:10 +00:00
(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:
@@ -563,8 +563,8 @@ static void NetworkStartServerWindowWndProc(Window *w, WindowEvent *e)
|
||||
_is_network_server = true;
|
||||
ttd_strlcpy(_network_server_name, WP(w, querystr_d).text.buf, sizeof(_network_server_name));
|
||||
UpdateTextBufferSize(&WP(w, querystr_d).text);
|
||||
if(selected_map==NULL) { // start random new game
|
||||
DoCommandP(0, Random(), InteractiveRandom(), NULL, CMD_GEN_RANDOM_NEW_GAME);
|
||||
if (selected_map == NULL) { // start random new game
|
||||
GenRandomNewGame(Random(), InteractiveRandom());
|
||||
} else { // load a scenario
|
||||
char *name;
|
||||
if ((name = FiosBrowseTo(selected_map)) != NULL) {
|
||||
|
Reference in New Issue
Block a user