1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-01 19:09:09 +00:00

(svn r12378) -Fix: refresh vehicle details window when cached values are updated

This commit is contained in:
glx
2008-03-17 21:50:53 +00:00
parent e2ec1e7032
commit 2b86efea74

View File

@@ -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 {