src/newgrf_station.cpp
changeset 7768 2060e8d65a72
parent 7726 c5e6d417672a
child 7823 cad4dec2b899
equal deleted inserted replaced
7767:7d8033aa8248 7768:2060e8d65a72
   755 		uint16 callback = GetStationCallback(CBID_STATION_SPRITE_LAYOUT, 0x2110000, 0, statspec, NULL, INVALID_TILE);
   755 		uint16 callback = GetStationCallback(CBID_STATION_SPRITE_LAYOUT, 0x2110000, 0, statspec, NULL, INVALID_TILE);
   756 		if (callback != CALLBACK_FAILED) tile = callback;
   756 		if (callback != CALLBACK_FAILED) tile = callback;
   757 	}
   757 	}
   758 
   758 
   759 	if (statspec->renderdata == NULL) {
   759 	if (statspec->renderdata == NULL) {
   760 		sprites = GetStationTileLayout(tile + axis);
   760 		sprites = GetStationTileLayout(STATION_RAIL, tile + axis);
   761 	} else {
   761 	} else {
   762 		sprites = &statspec->renderdata[(tile < statspec->tiles) ? tile + axis : (uint)axis];
   762 		sprites = &statspec->renderdata[(tile < statspec->tiles) ? tile + axis : (uint)axis];
   763 	}
   763 	}
   764 
   764 
   765 	image = sprites->ground_sprite;
   765 	image = sprites->ground_sprite;