(svn r4077) Add GetIndustry{Index,ByTile}() to get the industry index resp. the industry from a tile
This commit is contained in:
16
industry_map.h
Normal file
16
industry_map.h
Normal file
@@ -0,0 +1,16 @@
|
||||
/* $Id$ */
|
||||
|
||||
#include "industry.h"
|
||||
#include "macros.h"
|
||||
#include "tile.h"
|
||||
|
||||
|
||||
static inline uint GetIndustryIndex(TileIndex t)
|
||||
{
|
||||
return _m[t].m2;
|
||||
}
|
||||
|
||||
static inline Industry* GetIndustryByTile(TileIndex t)
|
||||
{
|
||||
return GetIndustry(GetIndustryIndex(t));
|
||||
}
|
||||
Reference in New Issue
Block a user