Mercurial > hg > openttd
changeset 17161:3ac03eb337d8 draft
(svn r21899) -Fix: Do not show a vehicle selection in the RefitWindow for refit orders. You cannot select anything anyway.
author | frosch <frosch@openttd.org> |
---|---|
date | Sun, 23 Jan 2011 13:00:50 +0000 |
parents | 9f97def2f4bb |
children | 18e173373bb0 |
files | src/vehicle_gui.cpp |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -614,6 +614,7 @@ r.top + WD_FRAMERECT_TOP, INVALID_VEHICLE, this->hscroll != NULL ? this->hscroll->GetPosition() : 0); /* Highlight selected vehicles. */ + if (this->order != INVALID_VEH_ORDER_ID) break; int x = 0; switch (v->type) { case VEH_TRAIN: {