summaryrefslogtreecommitdiff
path: root/train_cmd.c
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2006-09-05 16:40:23 +0000
committerglx <glx@openttd.org>2006-09-05 16:40:23 +0000
commitab5135dd3801278c750d80c72830e7eadfcf438c (patch)
tree45dd58459fce99a444dcbfe6d4ba4c0bf94ac317 /train_cmd.c
parent75d8a724fa91d549a11c1ab02495bc2c54a21129 (diff)
downloadopenttd-ab5135dd3801278c750d80c72830e7eadfcf438c.tar.xz
(svn r6395) -Fix: when converting a depot from/to elrail, update the power of trains that are in it
Diffstat (limited to 'train_cmd.c')
-rw-r--r--train_cmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/train_cmd.c b/train_cmd.c
index 70ba47499..7780faf52 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -113,6 +113,7 @@ void TrainPowerChanged(Vehicle* v)
if (v->u.rail.cached_power != power) {
v->u.rail.cached_power = power;
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
+ InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR);
}
}