(svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile()

This commit is contained in:
smatz
2009-06-24 17:39:54 +00:00
parent b18bf87c90
commit 8343340acb
38 changed files with 70 additions and 55 deletions

View File

@@ -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;

View File

@@ -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()

View File

@@ -4,7 +4,7 @@
#include "ai_marine.hpp"
#include "ai_station.hpp"
#include "../../station_map.h"
#include "../../station_base.h"
#include "../../tile_cmd.h"

View File

@@ -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"
/**

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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)