summaryrefslogtreecommitdiff
path: root/src/ai/api
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-02 09:06:15 +0000
committerrubidium <rubidium@openttd.org>2009-07-02 09:06:15 +0000
commit4d14c1b534947ed38780995af4d68bd67b4ae095 (patch)
tree5afca0f6bf0a5a885285f85755c0cdfa42c7d70f /src/ai/api
parent61e735ba4c62e578ca16f708ac1fdc872ff6416d (diff)
downloadopenttd-4d14c1b534947ed38780995af4d68bd67b4ae095.tar.xz
(svn r16722) -Codechange: unify the naming of the Is/Set/HasArticulatedPart functions
Diffstat (limited to 'src/ai/api')
-rw-r--r--src/ai/api/ai_vehicle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/api/ai_vehicle.cpp b/src/ai/api/ai_vehicle.cpp
index a43b8aa6b..e98dc2ebc 100644
--- a/src/ai/api/ai_vehicle.cpp
+++ b/src/ai/api/ai_vehicle.cpp
@@ -412,8 +412,8 @@
const Vehicle *v = ::Vehicle::Get(vehicle_id);
switch (v->type) {
- case VEH_ROAD: return ::RoadVehicle::From(v)->RoadVehHasArticPart();
- case VEH_TRAIN: return ::Train::From(v)->EngineHasArticPart();
+ case VEH_ROAD: return ::RoadVehicle::From(v)->HasArticulatedPart();
+ case VEH_TRAIN: return ::Train::From(v)->HasArticulatedPart();
default: NOT_REACHED();
}
}