(svn r17594) -Fix: Vehicle image was not always updated when needed.

This commit is contained in:
frosch
2009-09-20 19:36:27 +00:00
parent d53eab6052
commit 1192ed4c2d
6 changed files with 9 additions and 0 deletions

View File

@@ -212,6 +212,7 @@ static void HandleBrokenShip(Vehicle *v)
if (v->breakdowns_since_last_service != 255)
v->breakdowns_since_last_service++;
v->MarkDirty();
SetWindowDirty(WC_VEHICLE_VIEW, v->index);
SetWindowDirty(WC_VEHICLE_DETAILS, v->index);
@@ -229,6 +230,7 @@ static void HandleBrokenShip(Vehicle *v)
if (!(v->tick_counter & 1)) {
if (!--v->breakdown_delay) {
v->breakdown_ctr = 0;
v->MarkDirty();
SetWindowDirty(WC_VEHICLE_VIEW, v->index);
}
}