station_gui.c
changeset 2544 50cb52cdeb73
parent 2543 a6344040f735
child 2549 f1d3b383d557
--- a/station_gui.c	Thu Oct 20 17:23:33 2005 +0000
+++ b/station_gui.c	Thu Oct 20 17:43:13 2005 +0000
@@ -533,13 +533,11 @@
 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;
 	}
 }