(svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile()
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "ai_airport.hpp"
|
||||
#include "ai_station.hpp"
|
||||
#include "../../station_map.h"
|
||||
#include "../../station_base.h"
|
||||
#include "../../company_func.h"
|
||||
#include "../../command_type.h"
|
||||
#include "../../town.h"
|
||||
@@ -82,7 +82,7 @@
|
||||
if (!::IsValidTile(tile)) return -1;
|
||||
if (!::IsTileType(tile, MP_STATION)) return -1;
|
||||
|
||||
const Station *st = ::GetStationByTile(tile);
|
||||
const Station *st = ::Station::GetByTile(tile);
|
||||
if (st->owner != _current_company) return -1;
|
||||
if ((st->facilities & FACIL_AIRPORT) == 0) return -1;
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
if (!::IsTileType(tile, MP_STATION)) return INVALID_TILE;
|
||||
if (GetNumHangars(tile) < 1) return INVALID_TILE;
|
||||
|
||||
const Station *st = ::GetStationByTile(tile);
|
||||
const Station *st = ::Station::GetByTile(tile);
|
||||
if (st->owner != _current_company) return INVALID_TILE;
|
||||
if ((st->facilities & FACIL_AIRPORT) == 0) return INVALID_TILE;
|
||||
|
||||
|
@@ -8,7 +8,7 @@
|
||||
#include "../../tile_type.h"
|
||||
#include "../../industry.h"
|
||||
#include "../../strings_func.h"
|
||||
#include "../../station_map.h"
|
||||
#include "../../station_base.h"
|
||||
#include "table/strings.h"
|
||||
|
||||
/* static */ int32 AIIndustry::GetIndustryCount()
|
||||
|
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "ai_marine.hpp"
|
||||
#include "ai_station.hpp"
|
||||
#include "../../station_map.h"
|
||||
#include "../../station_base.h"
|
||||
#include "../../tile_cmd.h"
|
||||
|
||||
|
||||
|
@@ -10,7 +10,7 @@
|
||||
#include "../../vehicle_base.h"
|
||||
#include "../../roadstop_base.h"
|
||||
#include "../../depot_base.h"
|
||||
#include "../../station_map.h"
|
||||
#include "../../station_base.h"
|
||||
#include "../../waypoint.h"
|
||||
|
||||
/**
|
||||
|
@@ -6,7 +6,7 @@
|
||||
#include "ai_map.hpp"
|
||||
#include "ai_station.hpp"
|
||||
#include "../../debug.h"
|
||||
#include "../../station_map.h"
|
||||
#include "../../station_base.h"
|
||||
#include "../../company_func.h"
|
||||
#include "../../waypoint.h"
|
||||
#include "../../newgrf_generic.h"
|
||||
|
@@ -6,7 +6,7 @@
|
||||
#include "ai_map.hpp"
|
||||
#include "ai_station.hpp"
|
||||
#include "ai_cargo.hpp"
|
||||
#include "../../station_map.h"
|
||||
#include "../../station_base.h"
|
||||
#include "../../command_type.h"
|
||||
#include "../../settings_type.h"
|
||||
#include "../../company_func.h"
|
||||
|
@@ -8,7 +8,7 @@
|
||||
#include "ai_town.hpp"
|
||||
#include "../../command_func.h"
|
||||
#include "../../debug.h"
|
||||
#include "../../station_map.h"
|
||||
#include "../../station_base.h"
|
||||
#include "../../roadstop_base.h"
|
||||
#include "../../string_func.h"
|
||||
#include "../../strings_func.h"
|
||||
|
@@ -6,7 +6,7 @@
|
||||
#include "ai_industry.hpp"
|
||||
#include "../../tile_map.h"
|
||||
#include "../../industry_map.h"
|
||||
#include "../../station_map.h"
|
||||
#include "../../station_base.h"
|
||||
#include "../../settings_type.h"
|
||||
|
||||
void AITileList::FixRectangleSpan(TileIndex &t1, TileIndex &t2)
|
||||
|
Reference in New Issue
Block a user