diff options
author | frosch <frosch@openttd.org> | 2013-05-06 12:49:04 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-05-06 12:49:04 +0000 |
commit | 02924a1d3e39d0a5d9c417b970cffc2c94118828 (patch) | |
tree | adf788074f44245570dcc8b06b869349c56c9802 /src | |
parent | f2322974a2c1d59f8fa0cf579852f5ff36233afe (diff) | |
download | openttd-02924a1d3e39d0a5d9c417b970cffc2c94118828.tar.xz |
(svn r25220) -Change [FS#Eddi]: Consider map border as water wrt. river/canal continuation.
Diffstat (limited to 'src')
-rw-r--r-- | src/water_cmd.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp index 6b4f41eb9..ccda7fb06 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -606,6 +606,8 @@ static bool IsWateredTile(TileIndex tile, Direction from) case MP_TUNNELBRIDGE: return GetTunnelBridgeTransportType(tile) == TRANSPORT_WATER && ReverseDiagDir(GetTunnelBridgeDirection(tile)) == DirToDiagDir(from); + case MP_VOID: return true; // consider map border as water, esp. for rivers + default: return false; } } |