station_cmd.c
changeset 4231 2823b3643862
parent 4230 f4e93251e2f6
child 4261 28670f743746
equal deleted inserted replaced
4230:f4e93251e2f6 4231:2823b3643862
  2150 		Point pt = RemapCoords(dtss->delta_x, dtss->delta_y, dtss->delta_z);
  2150 		Point pt = RemapCoords(dtss->delta_x, dtss->delta_y, dtss->delta_z);
  2151 		DrawSprite((dtss->image | ormod) + rti->total_offset, x + pt.x, y + pt.y);
  2151 		DrawSprite((dtss->image | ormod) + rti->total_offset, x + pt.x, y + pt.y);
  2152 	}
  2152 	}
  2153 }
  2153 }
  2154 
  2154 
  2155 static uint GetSlopeZ_Station(const TileInfo* ti)
  2155 static uint GetSlopeZ_Station(TileIndex tile, uint x, uint y)
  2156 {
  2156 {
  2157 	return ti->z + (ti->tileh == SLOPE_FLAT ? 0 : TILE_HEIGHT);
  2157 	return GetTileMaxZ(tile);
  2158 }
  2158 }
  2159 
  2159 
  2160 static Slope GetSlopeTileh_Station(TileIndex tile, Slope tileh)
  2160 static Slope GetSlopeTileh_Station(TileIndex tile, Slope tileh)
  2161 {
  2161 {
  2162 	return SLOPE_FLAT;
  2162 	return SLOPE_FLAT;