Feature: Add NotRoadTypes (NRT)

This commit is contained in:
peter1138
2019-04-06 07:46:15 +01:00
committed by Michael Lutz
parent 21edf67f89
commit c02ef3e456
106 changed files with 4465 additions and 1245 deletions

View File

@@ -13,6 +13,7 @@
#define TUNNELBRIDGE_H
#include "map_func.h"
#include "tile_map.h"
void MarkBridgeDirty(TileIndex begin, TileIndex end, DiagDirection direction, uint bridge_height);
void MarkBridgeDirty(TileIndex tile);
@@ -33,6 +34,18 @@ static inline uint GetTunnelBridgeLength(TileIndex begin, TileIndex end)
return abs(x2 + y2 - x1 - y1) - 1;
}
/**
* Sets the ownership of the bridge/tunnel ramps
* @param begin The begin of the tunnel or bridge.
* @param end The end of the tunnel or bridge.
* @param owner The new owner to set
*/
static inline void SetTunnelBridgeOwner(TileIndex begin, TileIndex end, Owner owner)
{
SetTileOwner(begin, owner);
SetTileOwner(end, owner);
}
extern TileIndex _build_tunnel_endtile;
#endif /* TUNNELBRIDGE_H */