(svn r17316) -Codechange: use Industry::GetByTile() instead of GetIndustryByTile()
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#ifndef INDUSTRY_MAP_H
|
||||
#define INDUSTRY_MAP_H
|
||||
|
||||
#include "industry.h"
|
||||
#include "industrytype.h"
|
||||
#include "tile_map.h"
|
||||
#include "water_map.h"
|
||||
|
||||
@@ -69,17 +69,6 @@ static inline IndustryID GetIndustryIndex(TileIndex t)
|
||||
return _m[t].m2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the industry of the given tile
|
||||
* @param t the tile to get the industry from
|
||||
* @pre IsTileType(t, MP_INDUSTRY)
|
||||
* @return the industry
|
||||
*/
|
||||
static inline Industry *GetIndustryByTile(TileIndex t)
|
||||
{
|
||||
return Industry::Get(GetIndustryIndex(t));
|
||||
}
|
||||
|
||||
/**
|
||||
* Is this industry tile fully built?
|
||||
* @param t the tile to analyze
|
||||
|
Reference in New Issue
Block a user