diff options
author | tron <tron@openttd.org> | 2005-01-17 09:16:43 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-17 09:16:43 +0000 |
commit | d4beff7954f1f016ed517b6c54e6a25895f5481d (patch) | |
tree | e534ac5378cf1948c846305102e8f60131b3ef94 /ai.h | |
parent | a1e94b67d5c10c102b4fe1361e2445f1bceecf47 (diff) | |
download | openttd-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.h | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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 |