town_map.h
changeset 3319 7d04847e4689
child 3369 00c2ca209a89
equal deleted inserted replaced
3318:b54ff6bb28be 3319:7d04847e4689
       
     1 /* $Id$ */
       
     2 
       
     3 #include "town.h"
       
     4 
       
     5 
       
     6 static inline uint GetTownIndex(TileIndex t)
       
     7 {
       
     8 	return _m[t].m2;
       
     9 }
       
    10 
       
    11 static inline Town* GetTownByTile(TileIndex t)
       
    12 {
       
    13 	return GetTown(GetTownIndex(t));
       
    14 }