File diff r27798:d7f49906d8cf → r27799:ab7d36d10264
src/newgrf_station.cpp
Show inline comments
 
@@ -646,13 +646,13 @@ uint16_t GetStationCallback(CallbackID c
 
 * @param plat_len Platform length.
 
 * @param numtracks Number of platforms.
 
 * @return Succeeded or failed command.
 
 */
 
CommandCost PerformStationTileSlopeCheck(TileIndex north_tile, TileIndex cur_tile, const StationSpec *statspec, Axis axis, byte plat_len, byte numtracks)
 
{
 
	TileIndexDiff diff = cur_tile - north_tile;
 
	TileIndex diff = cur_tile - north_tile;
 
	Slope slope = GetTileSlope(cur_tile);
 

	
 
	StationResolverObject object(statspec, nullptr, cur_tile, CBID_STATION_LAND_SLOPE_CHECK,
 
			(slope << 4) | (slope ^ (axis == AXIS_Y && HasBit(slope, CORNER_W) != HasBit(slope, CORNER_E) ? SLOPE_EW : 0)),
 
			(numtracks << 24) | (plat_len << 16) | (axis == AXIS_Y ? TileX(diff) << 8 | TileY(diff) : TileY(diff) << 8 | TileX(diff)));
 
	object.station_scope.axis = axis;