diff options
author | yexo <yexo@openttd.org> | 2009-02-14 21:13:15 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-02-14 21:13:15 +0000 |
commit | 8ceb92e6998cdcf0b7821a9c18ec8d216b1a06fa (patch) | |
tree | 3d84eb7197d928828f5787362c78b7f570dc0fa9 /src/ai | |
parent | cea470e687a0ce6807d344346540b390ea5cc8f8 (diff) | |
download | openttd-8ceb92e6998cdcf0b7821a9c18ec8d216b1a06fa.tar.xz |
(svn r15486) -Change [API CHANGE]: Remove AITown::GetMaxTownID.
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/api/ai_town.cpp | 5 | ||||
-rw-r--r-- | src/ai/api/ai_town.hpp | 7 | ||||
-rw-r--r-- | src/ai/api/ai_town.hpp.sq | 1 |
3 files changed, 0 insertions, 13 deletions
diff --git a/src/ai/api/ai_town.cpp b/src/ai/api/ai_town.cpp index 117c35f39..f7584c979 100644 --- a/src/ai/api/ai_town.cpp +++ b/src/ai/api/ai_town.cpp @@ -14,11 +14,6 @@ #include "../../station_base.h" #include "table/strings.h" -/* static */ TownID AITown::GetMaxTownID() -{ - return ::GetMaxTownIndex(); -} - /* static */ int32 AITown::GetTownCount() { return ::GetNumTowns(); diff --git a/src/ai/api/ai_town.hpp b/src/ai/api/ai_town.hpp index 02b806b4c..c132beea3 100644 --- a/src/ai/api/ai_town.hpp +++ b/src/ai/api/ai_town.hpp @@ -97,13 +97,6 @@ public: }; /** - * Gets the maximum town index; there are no valid towns with a higher index. - * @return The maximum town index. - * @post Return value is always non-negative. - */ - static TownID GetMaxTownID(); - - /** * Gets the number of towns. This is different than GetMaxTownID() * because of the way OpenTTD works internally. * @return The number of towns. diff --git a/src/ai/api/ai_town.hpp.sq b/src/ai/api/ai_town.hpp.sq index d5fd67aee..f31a22867 100644 --- a/src/ai/api/ai_town.hpp.sq +++ b/src/ai/api/ai_town.hpp.sq @@ -49,7 +49,6 @@ void SQAITown_Register(Squirrel *engine) { SQAITown.DefSQConst(engine, AITown::ROAD_LAYOUT_3x3, "ROAD_LAYOUT_3x3"); SQAITown.DefSQConst(engine, AITown::ROAD_LAYOUT_INVALID, "ROAD_LAYOUT_INVALID"); - SQAITown.DefSQStaticMethod(engine, &AITown::GetMaxTownID, "GetMaxTownID", 1, "?"); SQAITown.DefSQStaticMethod(engine, &AITown::GetTownCount, "GetTownCount", 1, "?"); SQAITown.DefSQStaticMethod(engine, &AITown::IsValidTown, "IsValidTown", 2, "?i"); SQAITown.DefSQStaticMethod(engine, &AITown::GetName, "GetName", 2, "?i"); |