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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user