diff options
author | Darkvater <Darkvater@openttd.org> | 2005-05-12 00:18:30 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-05-12 00:18:30 +0000 |
commit | eb4233e8e9e1e6f4b9ce4eb3a7182b1282985f26 (patch) | |
tree | d790be3fa8129c0c0146ef2a1e78c42a8d13bbf2 /network_gui.c | |
parent | 562a32c3ee7b1c3ebf87968bd57163dada00d941 (diff) | |
download | openttd-eb4233e8e9e1e6f4b9ce4eb3a7182b1282985f26.tar.xz |
(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.
Diffstat (limited to 'network_gui.c')
-rw-r--r-- | network_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/network_gui.c b/network_gui.c index 7c83a7ff7..028ef770c 100644 --- a/network_gui.c +++ b/network_gui.c @@ -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) { |