town_map.h
changeset 3369 00c2ca209a89
parent 3319 7d04847e4689
child 3377 014725164f97
equal deleted inserted replaced
3368:57034dcd7978 3369:00c2ca209a89
     3 #include "town.h"
     3 #include "town.h"
     4 
     4 
     5 
     5 
     6 static inline uint GetTownIndex(TileIndex t)
     6 static inline uint GetTownIndex(TileIndex t)
     7 {
     7 {
       
     8 	assert(IsTileType(t, MP_HOUSE) || IsTileType(t, MP_STREET)); // XXX incomplete
     8 	return _m[t].m2;
     9 	return _m[t].m2;
     9 }
    10 }
    10 
    11 
    11 static inline Town* GetTownByTile(TileIndex t)
    12 static inline Town* GetTownByTile(TileIndex t)
    12 {
    13 {