diff options
author | rubidium <rubidium@openttd.org> | 2008-06-11 13:54:01 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-06-11 13:54:01 +0000 |
commit | 7f6382badd3ea4f2c21920c9951997d4b431d0a2 (patch) | |
tree | 93d0cf5e2656fbaec389d945c2682c766b5756c8 /src/water_cmd.cpp | |
parent | dc5ceacd77b490ea7b1c719753704a744a80377c (diff) | |
download | openttd-7f6382badd3ea4f2c21920c9951997d4b431d0a2.tar.xz |
(svn r13464) -Codechange: support NewGRF Action 0x05, type 12.
Diffstat (limited to 'src/water_cmd.cpp')
-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 90195b102..71900d8b2 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -40,6 +40,7 @@ #include "newgrf_cargo.h" #include "effectvehicle_func.h" #include "oldpool_func.h" +#include "tunnelbridge_map.h" #include "table/sprites.h" #include "table/strings.h" @@ -506,6 +507,7 @@ static bool IsWateredTile(TileIndex tile, Direction from) case MP_STATION: return IsOilRig(tile) || (IsDock(tile) && GetTileSlope(tile, NULL) == SLOPE_FLAT) || IsBuoy(tile); case MP_INDUSTRY: return (GetIndustrySpec(GetIndustryType(tile))->behaviour & INDUSTRYBEH_BUILT_ONWATER) != 0; + case MP_TUNNELBRIDGE: return GetTunnelBridgeTransportType(tile) == TRANSPORT_WATER; default: return false; } } |