summaryrefslogtreecommitdiff
path: root/train_cmd.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-02-20 07:47:42 +0000
committercelestar <celestar@openttd.org>2005-02-20 07:47:42 +0000
commitd06f52a7f029b05bff96c70a1561761dc68412fb (patch)
tree40d8347f083126ca5ae7aed3ce32d172c9544f7f /train_cmd.c
parent2de3dc273574b632b2a82dc512351d3f42f94cb2 (diff)
downloadopenttd-d06f52a7f029b05bff96c70a1561761dc68412fb.tar.xz
(svn r1891) -Fix: [ 1143587 ] carriages of newgrfs can be refitted again
Diffstat (limited to 'train_cmd.c')
-rw-r--r--train_cmd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/train_cmd.c b/train_cmd.c
index 9443ff93d..d59fd30e9 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -841,8 +841,12 @@ int32 CmdMoveRailVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2)
if (dst_head->subtype == TS_Front_Engine)
UpdateTrainAcceleration(dst_head);
InvalidateWindow(WC_VEHICLE_DETAILS, dst_head->index);
+ /* Update the refit button */
+ InvalidateWindowWidget(WC_VEHICLE_VIEW, dst_head->index, 12);
}
+ /* I added this to so that the refit buttons get updated */
+ InvalidateWindowWidget(WC_VEHICLE_VIEW, src_head->index, 12);
InvalidateWindow(WC_VEHICLE_DEPOT, src_head->tile);
RebuildVehicleLists();
}