summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-07-12 16:36:53 +0000
committerfrosch <frosch@openttd.org>2011-07-12 16:36:53 +0000
commit7ec119a5740d44eb27d5fbfee24f7c04c9b0c7a0 (patch)
tree0138853b11b17e319055e26add85f109e1d22822
parent44b49269fc254ecd76a87b6f8f717867c96125b3 (diff)
downloadopenttd-7ec119a5740d44eb27d5fbfee24f7c04c9b0c7a0.tar.xz
(svn r22661) -Fix (r22659): Silence a gcc warning.
-rw-r--r--src/newgrf_station.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp
index f5236159d..4a6535e27 100644
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -684,7 +684,7 @@ CommandCost PerformStationTileSlopeCheck(TileIndex north_tile, TileIndex cur_til
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;