--- a/src/ai/api/ai_town.cpp Thu Apr 12 12:19:13 2007 +0000
+++ b/src/ai/api/ai_town.cpp Thu Apr 12 12:35:44 2007 +0000
@@ -25,7 +25,7 @@
char *AITown::GetName(TownID town_id)
{
- if (!this->IsValidTown(town_id)) return NULL;
+ if (!AITown::IsValidTown(town_id)) return NULL;
static const int len = 64;
char *town_name = MallocT<char>(len);
@@ -37,14 +37,14 @@
int32 AITown::GetPopulation(TownID town_id)
{
- if (!this->IsValidTown(town_id)) return 0;
+ if (!AITown::IsValidTown(town_id)) return 0;
const Town *t = ::GetTown(town_id);
return t->population;
}
TileIndex AITown::GetLocation(TownID town_id)
{
- if (!this->IsValidTown(town_id)) return INVALID_TILE;
+ if (!AITown::IsValidTown(town_id)) return INVALID_TILE;
const Town *t = ::GetTown(town_id);
return t->xy;
}