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

Method MarkDirty

src/aircraft_cmd.cpp:1326–1333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1324}
1325
1326void Aircraft::MarkDirty()
1327{
1328 this->colourmap = PAL_NONE;
1329 this->UpdateViewport(true, false);
1330 if (this->subtype == AIR_HELICOPTER) {
1331 GetRotorImage(this, EIT_ON_MAP, &this->Next()->Next()->sprite_cache.sprite_seq);
1332 }
1333}
1334
1335
1336uint Aircraft::Crash(bool flooded)

Callers

nothing calls this directly

Calls 3

GetRotorImageFunction · 0.85
UpdateViewportMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected