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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user