equal
deleted
inserted
replaced
37 return town_name; |
37 return town_name; |
38 } |
38 } |
39 |
39 |
40 /* static */ int32 AITown::GetPopulation(TownID town_id) |
40 /* static */ int32 AITown::GetPopulation(TownID town_id) |
41 { |
41 { |
42 if (!IsValidTown(town_id)) return 0; |
42 if (!IsValidTown(town_id)) return -1; |
43 const Town *t = ::GetTown(town_id); |
43 const Town *t = ::GetTown(town_id); |
44 return t->population; |
44 return t->population; |
45 } |
45 } |
46 |
46 |
47 /* static */ TileIndex AITown::GetLocation(TownID town_id) |
47 /* static */ TileIndex AITown::GetLocation(TownID town_id) |