mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r3486) - NewGRF fix: Always reinitialize the ttdpatch flags as patch settings may have changed.
This commit is contained in:
parent
8316942f91
commit
4bc7df663c
6
newgrf.c
6
newgrf.c
@ -2710,13 +2710,9 @@ static void LoadNewGRFFile(const char* filename, uint file_index, uint stage)
|
|||||||
|
|
||||||
void LoadNewGRF(uint load_index, uint file_index)
|
void LoadNewGRF(uint load_index, uint file_index)
|
||||||
{
|
{
|
||||||
static bool initialized = false; // XXX yikes
|
|
||||||
uint stage;
|
uint stage;
|
||||||
|
|
||||||
if (!initialized) {
|
InitializeGRFSpecial();
|
||||||
InitializeGRFSpecial();
|
|
||||||
initialized = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
ResetNewGRFData();
|
ResetNewGRFData();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user