From 4017439c37e661dbd694771106a8b29e9b860137 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 25 Jul 2009 10:39:58 +0000 Subject: (svn r16948) -Codechange: some code reductions and usage of wrapper functions --- src/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/viewport.cpp') diff --git a/src/viewport.cpp b/src/viewport.cpp index 29f1524f2..9b59e496c 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1092,7 +1092,7 @@ static void ViewportAddTownNames(DrawPixelInfo *dpi) static void AddStation(const Station *st, StringID str, uint16 width) { - AddStringToDraw(st->sign.left + 1, st->sign.top + 1, str, st->index, st->facilities, (st->owner == OWNER_NONE || st->facilities == 0) ? 0xE : _company_colours[st->owner], width); + AddStringToDraw(st->sign.left + 1, st->sign.top + 1, str, st->index, st->facilities, (st->owner == OWNER_NONE || !st->IsInUse()) ? 0xE : _company_colours[st->owner], width); } -- cgit v1.2.3-54-g00ecf