Merge branch 'custom_bridgeheads' into jgrpp
# Conflicts: # docs/landscape_grid.html # src/roadveh_cmd.cpp # src/saveload/afterload.cpp # src/saveload/extended_ver_sl.cpp # src/saveload/extended_ver_sl.h # src/settings_gui.cpp # src/settings_type.h # src/tunnelbridge_cmd.cpp # src/tunnelbridge_map.h
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include "core/random_func.hpp"
|
||||
#include "object_base.h"
|
||||
#include "company_func.h"
|
||||
#include "tunnelbridge_map.h"
|
||||
#include "pathfinder/npf/aystar.h"
|
||||
#include "saveload/saveload.h"
|
||||
#include <deque>
|
||||
@@ -351,6 +352,8 @@ Slope GetFoundationSlope(TileIndex tile, int *z)
|
||||
|
||||
bool HasFoundationNW(TileIndex tile, Slope slope_here, uint z_here)
|
||||
{
|
||||
if (IsRoadCustomBridgeHeadTile(tile) && GetTunnelBridgeDirection(tile) == DIAGDIR_NW) return false;
|
||||
|
||||
int z;
|
||||
|
||||
int z_W_here = z_here;
|
||||
@@ -368,6 +371,8 @@ bool HasFoundationNW(TileIndex tile, Slope slope_here, uint z_here)
|
||||
|
||||
bool HasFoundationNE(TileIndex tile, Slope slope_here, uint z_here)
|
||||
{
|
||||
if (IsRoadCustomBridgeHeadTile(tile) && GetTunnelBridgeDirection(tile) == DIAGDIR_NE) return false;
|
||||
|
||||
int z;
|
||||
|
||||
int z_E_here = z_here;
|
||||
|
||||
Reference in New Issue
Block a user