Changeset - r104:17d383425818
[Not reviewed]
master
0 1 0
dominik - 20 years ago 2004-08-22 00:53:39
dominik@openttd.org
(svn r105) Switch climate cheat gui enhancement
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
misc_gui.c
Show inline comments
 
@@ -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},
 
};
 

	
 

	
0 comments (0 inline, 0 general)