summaryrefslogtreecommitdiff
path: root/src/cheat_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-06-03 18:35:58 +0000
committersmatz <smatz@openttd.org>2008-06-03 18:35:58 +0000
commit1f55797fe3c75ec61ea69e6fa38ca2e4d817d30e (patch)
tree72b7d141fd63dcb880f610a334390bf9c41f97b1 /src/cheat_gui.cpp
parent1b7fcf0171ab4bc39b6cbb6b144ab7433f72ce1e (diff)
downloadopenttd-1f55797fe3c75ec61ea69e6fa38ca2e4d817d30e.tar.xz
(svn r13375) -Add: logging of actions that could possibly cause desyncs and crashes to simplify debugging. See readme.txt for details
Diffstat (limited to 'src/cheat_gui.cpp')
-rw-r--r--src/cheat_gui.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp
index 510ca7ef2..ce1cb0b58 100644
--- a/src/cheat_gui.cpp
+++ b/src/cheat_gui.cpp
@@ -19,6 +19,7 @@
#include "rail_gui.h"
#include "gui.h"
#include "player_gui.h"
+#include "gamelog.h"
#include "table/strings.h"
#include "table/sprites.h"
@@ -65,7 +66,12 @@ static int32 ClickChangeClimateCheat(int32 p1, int32 p2)
if (p1 == -1) p1 = 3;
if (p1 == 4) p1 = 0;
_settings_game.game_creation.landscape = p1;
+
+ GamelogStartAction(GLAT_CHEAT);
+ GamelogTestMode();
ReloadNewGRFData();
+ GamelogStopAction();
+
return _settings_game.game_creation.landscape;
}