summaryrefslogtreecommitdiff
path: root/ship_cmd.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-01-24 22:24:47 +0000
committerbjarni <bjarni@openttd.org>2005-01-24 22:24:47 +0000
commite006f89aa3e750ead8cce290d86ee22b2190a582 (patch)
treea40c92393f20c790b63d3d4ac0824541652cd3c3 /ship_cmd.c
parentffb2c4de778acd8bb35b43c44b65bb10af05e137 (diff)
downloadopenttd-e006f89aa3e750ead8cce290d86ee22b2190a582.tar.xz
(svn r1652) Fix: train and road vehicle lists are now redrawn when vehicles enters/leaves a depot (Hackykid)
fix: the ship status bar was not updated properly after a breakdown if show_speed was off (Hackykid)
Diffstat (limited to 'ship_cmd.c')
-rw-r--r--ship_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ship_cmd.c b/ship_cmd.c
index b56d201f8..ea28db771 100644
--- a/ship_cmd.c
+++ b/ship_cmd.c
@@ -175,7 +175,7 @@ static void HandleBrokenShip(Vehicle *v)
if (!(v->tick_counter & 1)) {
if (!--v->breakdown_delay) {
v->breakdown_ctr = 0;
- InvalidateWindowClasses(WC_SHIPS_LIST);
+ InvalidateWindow(WC_VEHICLE_VIEW, v->index);
}
}
}