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:

committed by
Jonathan G Rennison

parent
f7ced74c22
commit
dee526c6d6
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user