diff options
-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}, }; |