equal
deleted
inserted
replaced
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 { |