summaryrefslogtreecommitdiff
path: root/src/ai/trolly
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2007-02-14 11:53:39 +0000
committercelestar <celestar@openttd.org>2007-02-14 11:53:39 +0000
commitbde06e75b42c469247ee3afbd8078713402707de (patch)
tree5cebc76c7639e1dcf5e6ca5716240cb6277da593 /src/ai/trolly
parenta374caf51d9bce8eb26043f10d02db865d1a534e (diff)
downloadopenttd-bde06e75b42c469247ee3afbd8078713402707de.tar.xz
(svn r8732) -Codechange/Fix(r8705): Turned the bit-handling macros into template functions. Fixes a problem with MSVC and 64-bit shifts.
Diffstat (limited to 'src/ai/trolly')
-rw-r--r--src/ai/trolly/pathfinder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/trolly/pathfinder.cpp b/src/ai/trolly/pathfinder.cpp
index 5ba50ca7f..297d12a00 100644
--- a/src/ai/trolly/pathfinder.cpp
+++ b/src/ai/trolly/pathfinder.cpp
@@ -372,9 +372,9 @@ static void AyStar_AiPathFinder_GetNeighbours(AyStar *aystar, OpenListNode *curr
extern uint GetRailFoundation(Slope tileh, TrackBits bits); // XXX function declaration in .c
extern uint GetRoadFoundation(Slope tileh, RoadBits bits); // XXX function declaration in .c
extern uint GetBridgeFoundation(Slope tileh, Axis); // XXX function declaration in .c
-enum {
+typedef enum BridgeFoundations{
BRIDGE_NO_FOUNDATION = 1 << 0 | 1 << 3 | 1 << 6 | 1 << 9 | 1 << 12,
-};
+} BridgeFoundation;
// The most important function: it calculates the g-value
static int32 AyStar_AiPathFinder_CalculateG(AyStar *aystar, AyStarNode *current, OpenListNode *parent)