mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-31 19:33:34 +00:00
(svn r105) Switch climate cheat gui enhancement
This commit is contained in:
parent
c7baa9b10a
commit
b2340212c3
@ -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},
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user