summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_vehiclelist.hpp.sq
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-02-12 22:25:53 +0000
committerrubidium <rubidium@openttd.org>2009-02-12 22:25:53 +0000
commitdea3490b2fb3ed9bf67eafd45b0a524a7ea15750 (patch)
tree3e221a4c240d5e3816d46d5d1e22664047944955 /src/ai/api/ai_vehiclelist.hpp.sq
parent3314ef39d21f8a2c0ffbe2c39d0d12ca73b041a2 (diff)
downloadopenttd-dea3490b2fb3ed9bf67eafd45b0a524a7ea15750.tar.xz
(svn r15460) -Fix [NoAI]: don't require an instance to exist in the scope for static functions and limit exposure of the internal function GetClassName.
Diffstat (limited to 'src/ai/api/ai_vehiclelist.hpp.sq')
-rw-r--r--src/ai/api/ai_vehiclelist.hpp.sq6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/ai/api/ai_vehiclelist.hpp.sq b/src/ai/api/ai_vehiclelist.hpp.sq
index 603e36565..b5af401a1 100644
--- a/src/ai/api/ai_vehiclelist.hpp.sq
+++ b/src/ai/api/ai_vehiclelist.hpp.sq
@@ -17,8 +17,6 @@ void SQAIVehicleList_Register(Squirrel *engine) {
SQAIVehicleList.PreRegister(engine, "AIAbstractList");
SQAIVehicleList.AddConstructor<void (AIVehicleList::*)(), 1>(engine, "x");
- SQAIVehicleList.DefSQStaticMethod(engine, &AIVehicleList::GetClassName, "GetClassName", 1, "x");
-
SQAIVehicleList.PostRegister(engine);
}
@@ -36,8 +34,6 @@ void SQAIVehicleList_Station_Register(Squirrel *engine) {
SQAIVehicleList_Station.PreRegister(engine, "AIAbstractList");
SQAIVehicleList_Station.AddConstructor<void (AIVehicleList_Station::*)(StationID station_id), 2>(engine, "xi");
- SQAIVehicleList_Station.DefSQStaticMethod(engine, &AIVehicleList_Station::GetClassName, "GetClassName", 1, "x");
-
SQAIVehicleList_Station.PostRegister(engine);
}
@@ -55,7 +51,5 @@ void SQAIVehicleList_SharedOrders_Register(Squirrel *engine) {
SQAIVehicleList_SharedOrders.PreRegister(engine, "AIAbstractList");
SQAIVehicleList_SharedOrders.AddConstructor<void (AIVehicleList_SharedOrders::*)(VehicleID vehicle_id), 2>(engine, "xi");
- SQAIVehicleList_SharedOrders.DefSQStaticMethod(engine, &AIVehicleList_SharedOrders::GetClassName, "GetClassName", 1, "x");
-
SQAIVehicleList_SharedOrders.PostRegister(engine);
}