src/rail_cmd.cpp
branchnoai
changeset 9704 197cb8c6ae17
parent 9703 d2a6acdbd665
child 9718 f82a4facea8b
equal deleted inserted replaced
9703:d2a6acdbd665 9704:197cb8c6ae17
  1063 			YapfNotifyTrackLayoutChange(tile, RemoveFirstTrack(&tracks));
  1063 			YapfNotifyTrackLayoutChange(tile, RemoveFirstTrack(&tracks));
  1064 		}
  1064 		}
  1065 
  1065 
  1066 		if (IsTileDepotType(tile, TRANSPORT_RAIL)) {
  1066 		if (IsTileDepotType(tile, TRANSPORT_RAIL)) {
  1067 			/* Update build vehicle window related to this depot */
  1067 			/* Update build vehicle window related to this depot */
       
  1068 			InvalidateWindowData(WC_VEHICLE_DEPOT, tile);
  1068 			InvalidateWindowData(WC_BUILD_VEHICLE, tile);
  1069 			InvalidateWindowData(WC_BUILD_VEHICLE, tile);
  1069 		}
  1070 		}
  1070 
  1071 
  1071 		/* update power of train engines on this tile */
  1072 		/* update power of train engines on this tile */
  1072 		VehicleFromPos(tile, &tile, UpdateTrainPowerProc);
  1073 		VehicleFromPos(tile, &tile, UpdateTrainPowerProc);
  1514 			if (statspec != NULL) {
  1515 			if (statspec != NULL) {
  1515 				/* emulate station tile - open with building */
  1516 				/* emulate station tile - open with building */
  1516 				const Station* st = ComposeWaypointStation(ti->tile);
  1517 				const Station* st = ComposeWaypointStation(ti->tile);
  1517 				uint gfx = 2;
  1518 				uint gfx = 2;
  1518 
  1519 
  1519 				if (HASBIT(statspec->callbackmask, CBM_CUSTOM_LAYOUT)) {
  1520 				if (HASBIT(statspec->callbackmask, CBM_STATION_SPRITE_LAYOUT)) {
  1520 					uint16 callback = GetStationCallback(CBID_STATION_SPRITE_LAYOUT, 0, 0, statspec, st, ti->tile);
  1521 					uint16 callback = GetStationCallback(CBID_STATION_SPRITE_LAYOUT, 0, 0, statspec, st, ti->tile);
  1521 					if (callback != CALLBACK_FAILED) gfx = callback;
  1522 					if (callback != CALLBACK_FAILED) gfx = callback;
  1522 				}
  1523 				}
  1523 
  1524 
  1524 				if (statspec->renderdata == NULL) {
  1525 				if (statspec->renderdata == NULL) {