equal
deleted
inserted
replaced
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_func.h" |
11 #include "../../strings_func.h" |
12 #include "../../core/alloc_func.hpp" |
12 #include "../../core/alloc_func.hpp" |
|
13 #include "../../player_func.h" |
|
14 #include "../../settings_type.h" |
13 #include "table/strings.h" |
15 #include "table/strings.h" |
14 |
16 |
15 /* static */ bool AIStation::IsValidStation(StationID station_id) |
17 /* static */ bool AIStation::IsValidStation(StationID station_id) |
16 { |
18 { |
17 return ::IsValidStationID(station_id) && ::GetStation(station_id)->owner == _current_player; |
19 return ::IsValidStationID(station_id) && ::GetStation(station_id)->owner == _current_player; |