(svn r16948) -Codechange: some code reductions and usage of wrapper functions

This commit is contained in:
rubidium
2009-07-25 10:39:58 +00:00
parent 58563eafa7
commit def31de3c1
3 changed files with 6 additions and 10 deletions

View File

@@ -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);
}