diff options
author | smatz <smatz@openttd.org> | 2008-01-12 19:24:58 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-01-12 19:24:58 +0000 |
commit | 704a75871ae63a5e5d0881043feeaa413a2725b6 (patch) | |
tree | 034211d397f26df0541e8bff023ec914961f6a61 /src | |
parent | 712d4b62590b56ba13d33e50cfb20ece55f25ddd (diff) | |
download | openttd-704a75871ae63a5e5d0881043feeaa413a2725b6.tar.xz |
(svn r11820) -Fix: invalidate depot window when removing crashed train
Diffstat (limited to 'src')
-rw-r--r-- | src/train_cmd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 06c632555..a8fdc8ba1 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3118,6 +3118,9 @@ static void DeleteLastWagon(Vehicle *v) DeleteWindowById(WC_VEHICLE_VIEW, v->index); RebuildVehicleLists(); InvalidateWindow(WC_COMPANY, v->owner); + if (v->u.rail.track == TRACK_BIT_DEPOT) { + InvalidateWindow(WC_VEHICLE_DEPOT, v->tile); + } BeginVehicleMove(v); EndVehicleMove(v); |