mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r1754) - Fix: you can once again load newgrf files with lots of sprites. Index wasn't reset in second run, thus counting them double.
This commit is contained in:
parent
b344d30792
commit
35cb4fbf8c
|
@ -896,6 +896,7 @@ static void LoadSpriteTables(void)
|
||||||
// in each loading stage, (try to) open each file specified in the config and load information from it.
|
// in each loading stage, (try to) open each file specified in the config and load information from it.
|
||||||
_custom_sprites_base = load_index;
|
_custom_sprites_base = load_index;
|
||||||
for (_loading_stage = 0; _loading_stage < 2; _loading_stage++) {
|
for (_loading_stage = 0; _loading_stage < 2; _loading_stage++) {
|
||||||
|
load_index = _custom_sprites_base;
|
||||||
for (j = 0; j != lengthof(_newgrf_files) && _newgrf_files[j]; j++) {
|
for (j = 0; j != lengthof(_newgrf_files) && _newgrf_files[j]; j++) {
|
||||||
if ( !FiosCheckFileExists(_newgrf_files[j]) )
|
if ( !FiosCheckFileExists(_newgrf_files[j]) )
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue