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

Method UpdateLinks

src/smallmap_gui.cpp:1418–1428  ·  view source on GitHub ↗

Update all the links on the map. */

Source from the content-addressed store, hash-verified

1416
1417 /** Update all the links on the map. */
1418 void UpdateLinks()
1419 {
1420 if (this->map_type == SMT_LINKSTATS) {
1421 CompanyMask company_mask = this->GetOverlayCompanyMask();
1422 if (this->overlay->GetCompanyMask() != company_mask) {
1423 this->overlay->SetCompanyMask(company_mask);
1424 } else {
1425 this->overlay->SetDirty();
1426 }
1427 }
1428 }
1429
1430 /** Blink the industries (if hover over an industry). */
1431 void Blink()

Callers 2

BlinkMethod · 0.95
ForceRefreshMethod · 0.95

Calls 4

GetOverlayCompanyMaskMethod · 0.95
GetCompanyMaskMethod · 0.80
SetCompanyMaskMethod · 0.80
SetDirtyMethod · 0.45

Tested by

no test coverage detected