equal
deleted
inserted
replaced
29 #include "../../saveload.h" |
29 #include "../../saveload.h" |
30 #include "../../player_func.h" |
30 #include "../../player_func.h" |
31 #include "../../player_base.h" |
31 #include "../../player_base.h" |
32 #include "default.h" |
32 #include "default.h" |
33 |
33 |
|
34 #include "../../table/ai_rail.h" |
|
35 |
34 // remove some day perhaps? |
36 // remove some day perhaps? |
35 static uint _ai_service_interval; |
37 static uint _ai_service_interval; |
36 PlayerAI _players_ai[MAX_PLAYERS]; |
38 PlayerAI _players_ai[MAX_PLAYERS]; |
37 |
39 |
38 typedef void AiStateAction(Player *p); |
40 typedef void AiStateAction(Player *p); |
62 AIS_REMOVE_STATION = 21, |
64 AIS_REMOVE_STATION = 21, |
63 AIS_REMOVE_TRACK = 22, |
65 AIS_REMOVE_TRACK = 22, |
64 AIS_REMOVE_SINGLE_RAIL_TILE = 23 |
66 AIS_REMOVE_SINGLE_RAIL_TILE = 23 |
65 }; |
67 }; |
66 |
68 |
67 |
|
68 #include "../../table/ai_rail.h" |
|
69 |
69 |
70 static TrackBits GetRailTrackStatus(TileIndex tile) |
70 static TrackBits GetRailTrackStatus(TileIndex tile) |
71 { |
71 { |
72 uint32 r = GetTileTrackStatus(tile, TRANSPORT_RAIL, 0); |
72 uint32 r = GetTileTrackStatus(tile, TRANSPORT_RAIL, 0); |
73 return (TrackBits)(byte) (r | r >> 8); |
73 return (TrackBits)(byte) (r | r >> 8); |