diff options
author | tron <tron@openttd.org> | 2005-10-20 17:43:13 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-10-20 17:43:13 +0000 |
commit | 2b91f55b320256a9653920f0b395879c1012d158 (patch) | |
tree | 904818203b322c8fca47da358ab42c2f254d2280 /station_gui.c | |
parent | 6a5c0fabddadee4a95b075a21856eb8afbf93c57 (diff) | |
download | openttd-2b91f55b320256a9653920f0b395879c1012d158.tar.xz |
(svn r3073) int/byte -> EngineID/PlayerID/VehicleID
0/-1 -> INVALID_ENGINE
0x10 -> OWNER_NONE
Diffstat (limited to 'station_gui.c')
-rw-r--r-- | station_gui.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/station_gui.c b/station_gui.c index dc8a95dc1..91b706411 100644 --- a/station_gui.c +++ b/station_gui.c @@ -533,13 +533,11 @@ static const WindowDesc _station_view_desc = { void ShowStationViewWindow(StationID station) { Window *w; - byte color; w = AllocateWindowDescFront(&_station_view_desc, station); if (w) { - color = GetStation(w->window_number)->owner; - if (color != 0x10) - w->caption_color = color; + PlayerID owner = GetStation(w->window_number)->owner; + if (owner != OWNER_NONE) w->caption_color = owner; w->vscroll.cap = 5; } } |