Chunnel patch 28395: Add: Basic chunnel. Creating tunnels under water.

https://www.tt-forums.net/viewtopic.php?p=1183416#p1183416
This commit is contained in:
HackaLittleBit
2017-03-04 11:46:13 +00:00
committed by Jonathan G Rennison
parent f7ced74c22
commit dee526c6d6
2 changed files with 31 additions and 2 deletions

View File

@@ -14,6 +14,7 @@
#include "depot_type.h"
#include "tile_map.h"
#include "tree_map.h"
/**
* Bit field layout of m5 for water tiles.
@@ -204,7 +205,7 @@ static inline bool IsCoast(TileIndex t)
*/
static inline bool IsCoastTile(TileIndex t)
{
return IsTileType(t, MP_WATER) && IsCoast(t);
return (IsTileType(t, MP_WATER) && IsCoast(t)) || (IsTileType(t, MP_TREES) && GetTreeGround(t) == TREE_GROUND_SHORE);
}
/**