Mercurial > hg > openttd
changeset 17808:18a703930505 draft
(svn r22593) -Fix [FS#4647]: don't show cargo accepted/produced in the new station window when no tiles are selected (mouse hovering a window or toolbar)
author | yexo <yexo@openttd.org> |
---|---|
date | Thu, 16 Jun 2011 09:46:24 +0000 |
parents | 8015cecf73ea |
children | 981f157de59f |
files | src/station_gui.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -84,7 +84,7 @@ int DrawStationCoverageAreaText(int left, int right, int top, StationCoverageType sct, int rad, bool supplies) { TileIndex tile = TileVirtXY(_thd.pos.x, _thd.pos.y); - if (tile < MapSize()) { + if (_thd.drawstyle == HT_RECT && tile < MapSize()) { CargoArray cargos; if (supplies) { cargos = GetProductionAroundTiles(tile, _thd.size.x / TILE_SIZE, _thd.size.y / TILE_SIZE, rad);