File diff r11967:df0600d2c7e7 → r11968:c7807caba8df
src/town.h
Show inline comments
 
@@ -294,17 +294,12 @@ static inline HouseSpec *GetHouseSpecs(H
 

	
 
TileIndexDiff GetHouseNorthPart(HouseID &house);
 

	
 
static inline uint GetNumTowns()
 
{
 
	return (uint)Town::GetNumItems();
 
}
 

	
 
/**
 
 * Return a random valid town.
 
 */
 
static inline Town *GetRandomTown()
 
{
 
	int num = RandomRange(GetNumTowns());
 
	int num = RandomRange((uint16)Town::GetNumItems());
 
	TownID index = INVALID_TOWN;
 

	
 
	while (num >= 0) {