summaryrefslogtreecommitdiff
path: root/ai.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-17 09:16:43 +0000
committertron <tron@openttd.org>2005-01-17 09:16:43 +0000
commitd4beff7954f1f016ed517b6c54e6a25895f5481d (patch)
treee534ac5378cf1948c846305102e8f60131b3ef94 /ai.h
parenta1e94b67d5c10c102b4fe1361e2445f1bceecf47 (diff)
downloadopenttd-d4beff7954f1f016ed517b6c54e6a25895f5481d.tar.xz
(svn r1548) Move AI_PATHFINDER_IS_ROAD from ai.h to ai_pathfinder.c to avoid global namespace pollution, turn it into a function called IsRoad and improve the commments a bit
Diffstat (limited to 'ai.h')
-rw-r--r--ai.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/ai.h b/ai.h
index fd06e8642..8d60de149 100644
--- a/ai.h
+++ b/ai.h
@@ -228,13 +228,6 @@ enum {
#define AI_PATHFINDER_FLAG_BRIDGE 1
#define AI_PATHFINDER_FLAG_TUNNEL 2
-// A macro for mp_street, where 0x20 is depot
-// mp_tunnelbridge, where 0xf0 is a bridge, and 0x4/0x2 means: roadtunnel/bridge
-#define AI_PATHFINDER_IS_ROAD(tile) ((IsTileType(tile, MP_STREET) && !(_map5[tile] & 0x20)) || \
-(IsTileType(tile, MP_TUNNELBRIDGE) && \
- (((_map5[tile] & 0x80) == 0 && (_map5[tile] & 0x4) == 0x4) || \
- ((_map5[tile] & 0x80) != 0 && (_map5[tile] & 0x2) == 0x2))))
-
typedef void AiNew_StateFunction(Player *p);
// ai_new.c