src/rail_cmd.cpp
changeset 7636 ec035c803c21
parent 7601 988040ee27f4
child 7642 535e5d93ffb1
equal deleted inserted replaced
7635:41be6afdaf43 7636:ec035c803c21
  1064 			YapfNotifyTrackLayoutChange(tile, RemoveFirstTrack(&tracks));
  1064 			YapfNotifyTrackLayoutChange(tile, RemoveFirstTrack(&tracks));
  1065 		}
  1065 		}
  1066 
  1066 
  1067 		if (IsTileDepotType(tile, TRANSPORT_RAIL)) {
  1067 		if (IsTileDepotType(tile, TRANSPORT_RAIL)) {
  1068 			/* Update build vehicle window related to this depot */
  1068 			/* Update build vehicle window related to this depot */
       
  1069 			InvalidateWindowData(WC_VEHICLE_DEPOT, tile);
  1069 			InvalidateWindowData(WC_BUILD_VEHICLE, tile);
  1070 			InvalidateWindowData(WC_BUILD_VEHICLE, tile);
  1070 		}
  1071 		}
  1071 
  1072 
  1072 		/* update power of train engines on this tile */
  1073 		/* update power of train engines on this tile */
  1073 		VehicleFromPos(tile, &tile, UpdateTrainPowerProc);
  1074 		VehicleFromPos(tile, &tile, UpdateTrainPowerProc);