1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-25 15:39:09 +00:00

(svn r6395) -Fix: when converting a depot from/to elrail, update the power of trains that are in it

This commit is contained in:
glx
2006-09-05 16:40:23 +00:00
parent 85a71fcea9
commit ec6189081d
2 changed files with 14 additions and 2 deletions

View File

@@ -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);
}
}