(svn r12378) -Fix: refresh vehicle details window when cached values are updated
This commit is contained in:
@@ -290,6 +290,8 @@ void TrainConsistChanged(Vehicle* v)
|
|||||||
|
|
||||||
/* recalculate cached weights and power too (we do this *after* the rest, so it is known which wagons are powered and need extra weight added) */
|
/* recalculate cached weights and power too (we do this *after* the rest, so it is known which wagons are powered and need extra weight added) */
|
||||||
TrainCargoChanged(v);
|
TrainCargoChanged(v);
|
||||||
|
|
||||||
|
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
|
||||||
}
|
}
|
||||||
|
|
||||||
enum AccelType {
|
enum AccelType {
|
||||||
|
Reference in New Issue
Block a user