summaryrefslogtreecommitdiff
path: root/src/road_cmd.cpp
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-19 22:51:11 +0100
committerErich Eckner <git@eckner.net>2021-07-21 19:01:20 +0200
commitc2e0bc7fac90c44efe952206d6c59906bc8f749b (patch)
tree073c8b6f5912903dc38789c04533ecbde82a29dd /src/road_cmd.cpp
parent95f4c22ef5897c597592b03bcd0617f8d2d2aa8d (diff)
downloadopenttd-c2e0bc7fac90c44efe952206d6c59906bc8f749b.tar.xz
fix something about the slopes
Diffstat (limited to 'src/road_cmd.cpp')
-rw-r--r--src/road_cmd.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp
index fdfde38d1..a72ff4eb7 100644
--- a/src/road_cmd.cpp
+++ b/src/road_cmd.cpp
@@ -37,6 +37,7 @@
#include "genworld.h"
#include "company_gui.h"
#include "road_func.h"
+#include "road_cmd.h"
#include "table/strings.h"
#include "table/roadtypes.h"
@@ -251,8 +252,6 @@ static const RoadBits _invalid_tileh_slopes_road[2][15] = {
}
};
-static Foundation GetRoadFoundation(Slope tileh, RoadBits bits);
-
/**
* Is it allowed to remove the given road bits from the given tile?
* @param tile the tile to remove the road from
@@ -1296,7 +1295,7 @@ struct DrawRoadTileStruct {
* @param bits The RoadBits part
* @return The resulting Foundation
*/
-static Foundation GetRoadFoundation(Slope tileh, RoadBits bits)
+Foundation GetRoadFoundation(Slope tileh, RoadBits bits)
{
/* Flat land and land without a road doesn't require a foundation */
if (tileh == SLOPE_FLAT || bits == ROAD_NONE) return FOUNDATION_NONE;