(svn r13464) -Codechange: support NewGRF Action 0x05, type 12.

This commit is contained in:
rubidium
2008-06-11 13:54:01 +00:00
parent 2475d0010b
commit ee843728bf
14 changed files with 239 additions and 117 deletions

View File

@@ -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;
}
}