diff options
author | Darkvater <darkvater@openttd.org> | 2006-12-21 10:29:16 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-12-21 10:29:16 +0000 |
commit | 9b9add65c3780becd471efb9c1695b292e541210 (patch) | |
tree | f8281d852173843541f4573083830e5d73025495 /misc_gui.c | |
parent | 739e93fd23f91e433829dfaa5969e75528f861cd (diff) | |
download | openttd-9b9add65c3780becd471efb9c1695b292e541210.tar.xz |
(svn r7523) -Feature: Add the possibility to change the newgrf configuration of a running game.
This is only possible in SP (or in the intro menu). During game play you will
get a confirmation window when applying the changes as some actions can crash
OpenTTD and/or make your current game unplayable.
Diffstat (limited to 'misc_gui.c')
-rw-r--r-- | misc_gui.c | 6 |
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; } |