summaryrefslogtreecommitdiff
path: root/intro_gui.c
diff options
context:
space:
mode:
authorpasky <pasky@openttd.org>2005-04-02 15:59:07 +0000
committerpasky <pasky@openttd.org>2005-04-02 15:59:07 +0000
commit71b0622cec7e42d7e0d4375120660ad52a672d51 (patch)
tree506cc04763f73e034311c8e4b4899c53c2c327a4 /intro_gui.c
parentd35f965c47a912e5cf69bfe64650e726728b4f40 (diff)
downloadopenttd-71b0622cec7e42d7e0d4375120660ad52a672d51.tar.xz
(svn r2127) Get rid again of the CmdSetNewMapSize(), which was agreed to be just useless clutter. (Perhaps we should get rid of CmdSetNewLandscapeType() too, but I won't take responsibility for that. ;-)
Diffstat (limited to 'intro_gui.c')
-rw-r--r--intro_gui.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/intro_gui.c b/intro_gui.c
index 5d5b8345f..827f63b93 100644
--- a/intro_gui.c
+++ b/intro_gui.c
@@ -79,13 +79,16 @@ static void SelectGameWndProc(Window *w, WindowEvent *e) {
case 4: DoCommandP(0, InteractiveRandom(), 0, NULL, CMD_CREATE_SCENARIO); break;
case 5: ShowSaveLoadDialog(SLD_LOAD_SCENARIO); break;
case 6: case 7: case 8: case 9:
+ // XXX: Useless usage of the CMD infrastructure?
DoCommandP(0, e->click.widget - 6, 0, NULL, CMD_SET_NEW_LANDSCAPE_TYPE);
break;
case 10: case 11: case 12: case 13: case 14: case 15:
- DoCommandP(0, 6 + e->click.widget - 10, _patches.map_y, NULL, CMD_SET_NEW_MAP_SIZE);
+ _patches.map_x = 6 + e->click.widget - 10;
+ InvalidateWindowClasses(WC_SELECT_GAME);
break;
case 16: case 17: case 18: case 19: case 20: case 21:
- DoCommandP(0, _patches.map_x, 6 + e->click.widget - 16, NULL, CMD_SET_NEW_MAP_SIZE);
+ _patches.map_y = 6 + e->click.widget - 16;
+ InvalidateWindowClasses(WC_SELECT_GAME);
break;
case 23:
#ifdef ENABLE_NETWORK
@@ -326,9 +329,6 @@ int32 CmdSetNewLandscapeType(int x, int y, uint32 flags, uint32 p1, uint32 p2)
int32 CmdSetNewMapSize(int x, int y, uint32 flags, uint32 p1, uint32 p2)
{
if (flags & DC_EXEC) {
- _patches.map_x = p1;
- _patches.map_y = p2;
- InvalidateWindowClasses(WC_SELECT_GAME);
}
return 0;
}