mirror of https://github.com/OpenTTD/OpenTTD
(svn r26345) -Cleanup (r26310): Spawning towns does not touch persistent NewGRF storage. ClearPersistentStorageChanges is a dangerous/magic function which should not be called without reason.
parent
40f61eaf15
commit
20785c79fc
|
@ -1913,7 +1913,6 @@ bool GenerateTowns(TownLayout layout)
|
||||||
/* Clear the caches regularly, otherwise it will only be done
|
/* Clear the caches regularly, otherwise it will only be done
|
||||||
* at the end of the whole cycle when OpenTTD has allocated
|
* at the end of the whole cycle when OpenTTD has allocated
|
||||||
* lots and lots of memory for these essentially caches. */
|
* lots and lots of memory for these essentially caches. */
|
||||||
ClearPersistentStorageChanges(true);
|
|
||||||
Layouter::ReduceLineCache();
|
Layouter::ReduceLineCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue