* 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. */
| 204 | * @param company Company that changed, and needs its windows refreshed. |
| 205 | */ |
| 206 | void 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. |
no test coverage detected