summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/misc_gui.c b/misc_gui.c
index 371f7fc12..b10073d54 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -6,7 +6,7 @@
#include "heightmap.h"
#include "debug.h"
#include "functions.h"
-#include "gfxinit.h"
+#include "newgrf.h"
#include "saveload.h"
#include "strings.h"
#include "table/sprites.h"
@@ -1658,9 +1658,7 @@ static int32 ClickChangeClimateCheat(int32 p1, int32 p2)
if (p1 == -1) p1 = 3;
if (p1 == 4) p1 = 0;
_opt.landscape = p1;
- GfxLoadSprites();
- LoadStringWidthTable();
- MarkWholeScreenDirty();
+ ReloadNewGRFData();
return _opt.landscape;
}