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

Function InvalidateCompanyWindows

src/company_cmd.cpp:206–210  ·  view source on GitHub ↗

* Mark all finance windows owned by a company as needing a refresh. * The actual refresh is deferred until the end of the gameloop to reduce duplicated work. * @param company Company that changed, and needs its windows refreshed. */

Source from the content-addressed store, hash-verified

204 * @param company Company that changed, and needs its windows refreshed.
205 */
206void InvalidateCompanyWindows(const Company *company)
207{
208 CompanyID cid = company->index;
209 _dirty_company_finances.Set(cid);
210}
211
212/**
213 * Refresh all company finance windows previously marked dirty.

Callers 4

CmdIncreaseLoanFunction · 0.85
CmdDecreaseLoanFunction · 0.85
CmdSetCompanyMaxLoanFunction · 0.85

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected