forked from mirror/OpenTTD
Codechange: make use of Tile in for all direct map accesses
This commit is contained in:
@@ -61,7 +61,7 @@ uint16 Object::counts[NUM_OBJECTS];
|
||||
* @pre IsTileType(t, MP_OBJECT)
|
||||
* @return the type.
|
||||
*/
|
||||
ObjectType GetObjectType(TileIndex t)
|
||||
ObjectType GetObjectType(Tile t)
|
||||
{
|
||||
assert(IsTileType(t, MP_OBJECT));
|
||||
return Object::GetByTile(t)->type;
|
||||
|
Reference in New Issue
Block a user