Add several NewGRF variables to vehicle image callback whitelist
Add vehicle flags to control cached image invalidation Various refactorings
This commit is contained in:
@@ -277,7 +277,7 @@ Trackdir Ship::GetVehicleTrackdir() const
|
||||
void Ship::MarkDirty()
|
||||
{
|
||||
this->colourmap = PAL_NONE;
|
||||
this->cur_image_valid_dir = INVALID_DIR;
|
||||
this->InvalidateImageCache();
|
||||
this->UpdateViewport(true, false);
|
||||
this->UpdateCache();
|
||||
}
|
||||
|
Reference in New Issue
Block a user