(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:
Darkvater
2006-12-21 10:29:16 +00:00
parent 5cd081b6cd
commit dbb36b67d8
11 changed files with 102 additions and 20 deletions

View File

@@ -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;
}