diff options
author | dominik <dominik@openttd.org> | 2004-08-22 00:53:39 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2004-08-22 00:53:39 +0000 |
commit | b2340212c393d2488b8554dccafb9ab56e00dee5 (patch) | |
tree | 7655f02c7308be32f916e1b669aba6b854d03e57 | |
parent | c7baa9b10ad2480107164d3ae0e638cfa11efa5a (diff) | |
download | openttd-b2340212c393d2488b8554dccafb9ab56e00dee5.tar.xz |
(svn r105) Switch climate cheat gui enhancement
-rw-r--r-- | misc_gui.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/misc_gui.c b/misc_gui.c index 65def1a93..7017d2dd6 100644 --- a/misc_gui.c +++ b/misc_gui.c @@ -1348,6 +1348,8 @@ return _local_player; // p1 -1 or +1 (down/up) int32 ClickChangeClimateCheat(int32 p1, int32 p2) { + if(p1==-1) p1 = 3; + if(p1==4) p1 = 0; _opt.landscape = p1; GfxLoadSprites(); MarkWholeScreenDirty(); @@ -1427,7 +1429,7 @@ static const CheatEntry _cheats_ui[] = { {CE_BOOL, 0, STR_CHEAT_CROSSINGTUNNELS, &_cheats.crossing_tunnels.value,&_cheats.crossing_tunnels.been_used}, {CE_BOOL, 0, STR_CHEAT_BUILD_IN_PAUSE, &_cheats.build_in_pause.value, &_cheats.build_in_pause.been_used}, {CE_BOOL, 0, STR_CHEAT_NO_JETCRASH, &_cheats.no_jetcrash.value, &_cheats.no_jetcrash.been_used}, - {CE_UINT8, 0, STR_CHEAT_SWITCH_CLIMATE, &_opt.landscape, &_cheats.switch_climate.been_used, &ClickChangeClimateCheat, 0, 3, 1}, + {CE_UINT8, 0, STR_CHEAT_SWITCH_CLIMATE, &_opt.landscape, &_cheats.switch_climate.been_used, &ClickChangeClimateCheat, -1, 4, 1}, }; |