MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ResetPersistentNewGRFData

Function ResetPersistentNewGRFData

src/newgrf.cpp:505–514  ·  view source on GitHub ↗

* Reset NewGRF data which is stored persistently in savegames. */

Source from the content-addressed store, hash-verified

503 * Reset NewGRF data which is stored persistently in savegames.
504 */
505void ResetPersistentNewGRFData()
506{
507 /* Reset override managers */
508 _engine_mngr.ResetToDefaultMapping();
509 _house_mngr.ResetMapping();
510 _industry_mngr.ResetMapping();
511 _industile_mngr.ResetMapping();
512 _airport_mngr.ResetMapping();
513 _airporttile_mngr.ResetMapping();
514}
515
516/**
517 * Get the cargo translation table to use for the given GRF file.

Callers 1

InitializeGameFunction · 0.85

Calls 2

ResetToDefaultMappingMethod · 0.80
ResetMappingMethod · 0.80

Tested by

no test coverage detected