mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-30 15:58:12 +01:00
(svn r12378) -Fix: refresh vehicle details window when cached values are updated
This commit is contained in:
parent
e2ec1e7032
commit
2b86efea74
@ -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) */
|
||||
TrainCargoChanged(v);
|
||||
|
||||
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
|
||||
}
|
||||
|
||||
enum AccelType {
|
||||
|
Loading…
Reference in New Issue
Block a user