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 | c626555f6848d71ead5b64ddbfddd483a29b1b7f (patch) | |
tree | d790be3fa8129c0c0146ef2a1e78c42a8d13bbf2 /misc_gui.c | |
parent | 921cc4e94a7703816ff63e4f673eaa9d8a7da4ca (diff) | |
download | openttd-c626555f6848d71ead5b64ddbfddd483a29b1b7f.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 'misc_gui.c')
-rw-r--r-- | misc_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc_gui.c b/misc_gui.c index e30e0b0b3..20b18a0ae 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -1480,8 +1480,8 @@ static void SelectScenarioWndProc(Window *w, WindowEvent *e) { break; case 6: /* Click the listbox */ - if(e->click.pt.y < list_start) - DoCommandP(0, Random(), InteractiveRandom(), NULL, CMD_GEN_RANDOM_NEW_GAME); + if (e->click.pt.y < list_start) + GenRandomNewGame(Random(), InteractiveRandom()); else { char *name; int y = (e->click.pt.y - list_start) / 10; |