mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r11721) -Fix: do not disable NewGRFs for 'eternity' during games.
This commit is contained in:
parent
06d578d07e
commit
a3b19fd50c
@ -5607,6 +5607,17 @@ void LoadNewGRF(uint load_index, uint file_index)
|
|||||||
|
|
||||||
ResetNewGRFData();
|
ResetNewGRFData();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Reset the status of all files, so we can 'retry' to load them.
|
||||||
|
* This is needed when one for example rearranges the NewGRFs in-game
|
||||||
|
* and a previously disabled NewGRF becomes useable. If it would not
|
||||||
|
* be reset, the NewGRF would remain disabled even though it should
|
||||||
|
* have been enabled.
|
||||||
|
*/
|
||||||
|
for (GRFConfig *c = _grfconfig; c != NULL; c = c->next) {
|
||||||
|
if (c->status != GCS_NOT_FOUND) c->status = GCS_UNKNOWN;
|
||||||
|
}
|
||||||
|
|
||||||
/* Load newgrf sprites
|
/* Load newgrf sprites
|
||||||
* in each loading stage, (try to) open each file specified in the config
|
* in each loading stage, (try to) open each file specified in the config
|
||||||
* and load information from it. */
|
* and load information from it. */
|
||||||
|
Loading…
Reference in New Issue
Block a user