Mercurial > hg > openttd
changeset 6829:7b96a3eb93ba draft
(svn r10068) -Fix [FS#835]: coverage area highlight was still show when it was turned off for docks.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 08 Jun 2007 18:15:11 +0000 |
parents | 4214eaa23e0c |
children | 8a349f3bf427 |
files | src/dock_gui.cpp |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dock_gui.cpp +++ b/src/dock_gui.cpp @@ -235,14 +235,16 @@ case WE_CREATE: LowerWindowWidget(w, _station_show_coverage + 3); break; case WE_PAINT: { - int rad; + int rad = (_patches.modified_catchment) ? CA_DOCK : 4; if (WP(w, def_d).close) return; DrawWindowWidgets(w); - rad = (_patches.modified_catchment) ? CA_DOCK : 4; - - if (_station_show_coverage) SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad); + if (_station_show_coverage) { + SetTileSelectBigSize(-rad, -rad, 2 * rad, 2 * rad); + } else { + SetTileSelectSize(1, 1); + } DrawStationCoverageAreaText(4, 50, (uint)-1, rad); break;