src/newgrf_station.cpp
changeset 8571 53c94d717e99
parent 8570 f50de4804ff1
child 8616 fd862a55c47f
equal deleted inserted replaced
8570:f50de4804ff1 8571:53c94d717e99
   770 		sprites = GetStationTileLayout(STATION_RAIL, tile + axis);
   770 		sprites = GetStationTileLayout(STATION_RAIL, tile + axis);
   771 	} else {
   771 	} else {
   772 		sprites = &statspec->renderdata[(tile < statspec->tiles) ? tile + axis : (uint)axis];
   772 		sprites = &statspec->renderdata[(tile < statspec->tiles) ? tile + axis : (uint)axis];
   773 	}
   773 	}
   774 
   774 
   775 	image = sprites->ground_sprite;
   775 	image = sprites->ground.sprite;
   776 	if (HasBit(image, SPRITE_MODIFIER_USE_OFFSET)) {
   776 	if (HasBit(image, SPRITE_MODIFIER_USE_OFFSET)) {
   777 		image += GetCustomStationGroundRelocation(statspec, NULL, INVALID_TILE);
   777 		image += GetCustomStationGroundRelocation(statspec, NULL, INVALID_TILE);
   778 		image += rti->custom_ground_offset;
   778 		image += rti->custom_ground_offset;
   779 	} else {
   779 	} else {
   780 		image += rti->total_offset;
   780 		image += rti->total_offset;