summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_airport.hpp.sq
diff options
context:
space:
mode:
authorYexo <Yexo@openttd.org>2009-02-05 01:15:54 +0000
committerYexo <Yexo@openttd.org>2009-02-05 01:15:54 +0000
commit96f279608beda2113b10cf1cb9717954fd1ff329 (patch)
tree85c9d8cf146efb0bffe7348bcf6ccd390e05a9f3 /src/ai/api/ai_airport.hpp.sq
parent8f51ee50c1d810a7472ed8a0194f2a6c36b36b99 (diff)
downloadopenttd-96f279608beda2113b10cf1cb9717954fd1ff329.tar.xz
(svn r15346) -Add [NoAI]: Add AIAirport::GetNearestTown() so AIs can known in which town the noise level will increase.
Diffstat (limited to 'src/ai/api/ai_airport.hpp.sq')
-rw-r--r--src/ai/api/ai_airport.hpp.sq1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/api/ai_airport.hpp.sq b/src/ai/api/ai_airport.hpp.sq
index 355a2ab12..fdfed7836 100644
--- a/src/ai/api/ai_airport.hpp.sq
+++ b/src/ai/api/ai_airport.hpp.sq
@@ -52,6 +52,7 @@ void SQAIAirport_Register(Squirrel *engine) {
SQAIAirport.DefSQStaticMethod(engine, &AIAirport::RemoveAirport, "RemoveAirport", 2, "xi");
SQAIAirport.DefSQStaticMethod(engine, &AIAirport::GetAirportType, "GetAirportType", 2, "xi");
SQAIAirport.DefSQStaticMethod(engine, &AIAirport::GetNoiseLevelIncrease, "GetNoiseLevelIncrease", 3, "xii");
+ SQAIAirport.DefSQStaticMethod(engine, &AIAirport::GetNearestTown, "GetNearestTown", 3, "xii");
SQAIAirport.PostRegister(engine);
}