train_gui.c
changeset 2147 42efdf5020d1
parent 2113 f228b399da01
child 2163 637ec3c361f5
equal deleted inserted replaced
2146:ca98706b9a58 2147:42efdf5020d1
   321 	if (tile != 0) {
   321 	if (tile != 0) {
   322 		w->caption_color = GetTileOwner(tile);
   322 		w->caption_color = GetTileOwner(tile);
   323 		WP(w,buildtrain_d).railtype = _m[tile].m3 & 0xF;
   323 		WP(w,buildtrain_d).railtype = _m[tile].m3 & 0xF;
   324 	} else {
   324 	} else {
   325 		w->caption_color = _local_player;
   325 		w->caption_color = _local_player;
   326 		WP(w,buildtrain_d).railtype = GetPlayer(_local_player)->max_railtype - 1;
   326 		WP(w,buildtrain_d).railtype = GetBestRailtype(GetPlayer(_local_player));
   327 	}
   327 	}
   328 }
   328 }
   329 
   329 
   330 static void DrawTrainImage(const Vehicle *v, int x, int y, int count, int skip, VehicleID selection)
   330 static void DrawTrainImage(const Vehicle *v, int x, int y, int count, int skip, VehicleID selection)
   331 {
   331 {