equal
deleted
inserted
replaced
6 #include "ai_cargo.hpp" |
6 #include "ai_cargo.hpp" |
7 #include "../../debug.h" |
7 #include "../../debug.h" |
8 #include "../../station.h" |
8 #include "../../station.h" |
9 #include "../../station_map.h" |
9 #include "../../station_map.h" |
10 #include "../../variables.h" |
10 #include "../../variables.h" |
11 #include "../../strings.h" |
11 #include "../../strings_func.h" |
|
12 #include "../../core/alloc_func.hpp" |
12 #include "table/strings.h" |
13 #include "table/strings.h" |
13 |
14 |
14 /* static */ bool AIStation::IsValidStation(StationID station_id) |
15 /* static */ bool AIStation::IsValidStation(StationID station_id) |
15 { |
16 { |
16 return ::IsValidStationID(station_id) && ::GetStation(station_id)->owner == _current_player; |
17 return ::IsValidStationID(station_id) && ::GetStation(station_id)->owner == _current_player; |