summaryrefslogtreecommitdiff
path: root/water_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-19 13:44:11 +0000
committertron <tron@openttd.org>2006-03-19 13:44:11 +0000
commit667666f1a3a108b6297527102f173deff56d072d (patch)
tree34cb68dfe3d6fcfb4814e9b4e2d1b5723c0753f0 /water_cmd.c
parentbf3811122d1eb1ec3549faf43b9e39bb8ba58cab (diff)
downloadopenttd-667666f1a3a108b6297527102f173deff56d072d.tar.xz
(svn r3980) Fix glitch in r3979 spotted by Rubidium. Maybe I'm getting too old for this...
Diffstat (limited to 'water_cmd.c')
-rw-r--r--water_cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/water_cmd.c b/water_cmd.c
index a67361d63..3213424f6 100644
--- a/water_cmd.c
+++ b/water_cmd.c
@@ -527,9 +527,9 @@ static void TileLoopWaterHelper(TileIndex tile, const TileIndexDiffC *offs)
tracks = GetTrackBits(target);
slope = GetTileSlope(target, NULL);
if (!(
- (slope == 1 && tracks == TRACK_BIT_RIGHT) &&
- (slope == 2 && tracks == TRACK_BIT_UPPER) &&
- (slope == 4 && tracks == TRACK_BIT_LEFT) &&
+ (slope == 1 && tracks == TRACK_BIT_RIGHT) ||
+ (slope == 2 && tracks == TRACK_BIT_UPPER) ||
+ (slope == 4 && tracks == TRACK_BIT_LEFT) ||
(slope == 8 && tracks == TRACK_BIT_LOWER)
)) {
break;