OpenTTD Source 20241224-master-gf74b0cf984
cachecheck.cpp File Reference

Check caches. More...

#include "stdafx.h"
#include "aircraft.h"
#include "company_base.h"
#include "debug.h"
#include "industry.h"
#include "roadstop_base.h"
#include "roadveh.h"
#include "ship.h"
#include "station_base.h"
#include "station_map.h"
#include "subsidy_func.h"
#include "town.h"
#include "train.h"
#include "vehicle_base.h"
#include "safeguards.h"

Go to the source code of this file.

Functions

void AfterLoadCompanyStats ()
 Rebuilding of company statistics after loading a savegame.
 
void RebuildTownCaches ()
 Rebuild all the cached variables of towns.
 
void CheckCaches ()
 Check the validity of some of the caches.
 

Detailed Description

Check caches.

Definition in file cachecheck.cpp.

Function Documentation

◆ AfterLoadCompanyStats()

void AfterLoadCompanyStats ( )
extern

Rebuilding of company statistics after loading a savegame.

Definition at line 96 of file company_sl.cpp.

References Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_company_pool >::Iterate().

Referenced by AfterLoadGame(), CheckCaches(), and ReloadNewGRFData().

◆ CheckCaches()

void CheckCaches ( )

◆ RebuildTownCaches()