Mercurial > hg > openttd
changeset 17865:7d6d32bd7df5 draft
(svn r22661) -Fix (r22659): Silence a gcc warning.
author | frosch <frosch@openttd.org> |
---|---|
date | Tue, 12 Jul 2011 16:36:53 +0000 |
parents | e7c409b0847a |
children | 47fc6e03d2c0 |
files | src/newgrf_station.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -684,7 +684,7 @@ NewStationResolver(&object, statspec, NULL, cur_tile); object.callback = CBID_STATION_LAND_SLOPE_CHECK; - object.callback_param1 = slope << 4 | slope ^ (axis == AXIS_Y && HasBit(slope, CORNER_W) != HasBit(slope, CORNER_E) ? SLOPE_EW : 0); + object.callback_param1 = slope << 4 | (slope ^ (axis == AXIS_Y && HasBit(slope, CORNER_W) != HasBit(slope, CORNER_E) ? SLOPE_EW : 0)); object.callback_param2 = numtracks << 24 | plat_len << 16 | (axis == AXIS_Y ? TileX(diff) << 8 | TileY(diff) : TileY(diff) << 8 | TileX(diff)); object.u.station.axis = axis;