summaryrefslogtreecommitdiff
path: root/src/aircraft_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-08-04 14:02:27 +0000
committerfrosch <frosch@openttd.org>2013-08-04 14:02:27 +0000
commit5bda07c10ca4ad1e75dd632a1829a422e862f66a (patch)
tree1874bc3c65e729de6f96db5b7a126e47849ff5b5 /src/aircraft_cmd.cpp
parenta3efc99034ad933b70fb3af4ca9be267468ad221 (diff)
downloadopenttd-5bda07c10ca4ad1e75dd632a1829a422e862f66a.tar.xz
(svn r25648) -Change [FS#5669]: [NewGRF] Invalidate vehicle recolour palette during (un)loading.
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r--src/aircraft_cmd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index e0eb3558e..fb817b351 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -1153,7 +1153,8 @@ TileIndex Aircraft::GetOrderStationLocation(StationID station)
void Aircraft::MarkDirty()
{
- this->UpdateViewport(false, false);
+ this->colourmap = PAL_NONE;
+ this->UpdateViewport(true, false);
if (this->subtype == AIR_HELICOPTER) this->Next()->Next()->cur_image = GetRotorImage(this, EIT_ON_MAP);
}