Mercurial > hg > openttd
changeset 8256:3ddf51e9aa83 draft
(svn r11820) -Fix: invalidate depot window when removing crashed train
author | smatz <smatz@openttd.org> |
---|---|
date | Sat, 12 Jan 2008 19:24:58 +0000 |
parents | dc16e054fd8f |
children | 38d56fa7b6f7 |
files | src/train_cmd.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3118,6 +3118,9 @@ 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);