(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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user