src/ai/api/ai_town.cpp
branchnoai
changeset 9582 40f54a61bb17
parent 9497 f6678533ccba
child 9723 eee46cb39750
--- 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;
 }