diff options
author | yexo <yexo@openttd.org> | 2011-06-16 09:46:24 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2011-06-16 09:46:24 +0000 |
commit | 1a0d25dab161927da00fad364963d93e2e6f9602 (patch) | |
tree | e65254b448b57dda5dba060cdb545ea6078b980a | |
parent | 5f29da4ee005e8c838d0f52e51025228a389c33b (diff) | |
download | openttd-1a0d25dab161927da00fad364963d93e2e6f9602.tar.xz |
(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)
-rw-r--r-- | src/station_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index 4078ecbbf..9d7759af5 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -84,7 +84,7 @@ static int DrawCargoListText(uint32 cargo_mask, const Rect &r, StringID prefix) 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); |