ok, here goes:Zuu [url=http://www.tt-forums.net/viewtopic.php?f=33&t=51363]here[/url] wrote:Sorry, didn't knew it was already available.Yexo wrote:But it already is available to players. When you click on a town the caption of the town details window is "name" for towns and "name (City)" for cities.
I'm having trouble understanding OpenTTD's datatypes so, would this work? :
Code: Select all
/* static */ bool AITown::IsCity(TownID town_id)
{
if (!IsValidTown(town_id)) return false;
if (town_id->larger_town) return true;
else return false;
}
