diff options
author | glx <glx@openttd.org> | 2008-03-17 21:50:53 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2008-03-17 21:50:53 +0000 |
commit | 187c7e19febac248511df7b34d5c6c8cd204d158 (patch) | |
tree | 2e5c7587e7504d53402e1c56c5850f57922a8c33 | |
parent | 08becf93e698f8231e0629fddceb43f7aa8979cd (diff) | |
download | openttd-187c7e19febac248511df7b34d5c6c8cd204d158.tar.xz |
(svn r12378) -Fix: refresh vehicle details window when cached values are updated
-rw-r--r-- | src/train_cmd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index c89e1271b..a52cdfed9 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -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 { |