diff options
author | rubidium <rubidium@openttd.org> | 2009-07-25 10:39:58 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-25 10:39:58 +0000 |
commit | 4017439c37e661dbd694771106a8b29e9b860137 (patch) | |
tree | 246f39008b2a605aea760da2827bc586dedc2f87 /src/viewport.cpp | |
parent | 7440ec7a7350051297439f58f30d63f02018a507 (diff) | |
download | openttd-4017439c37e661dbd694771106a8b29e9b860137.tar.xz |
(svn r16948) -Codechange: some code reductions and usage of wrapper functions
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r-- | src/viewport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |