diff options
author | yexo <yexo@openttd.org> | 2012-03-14 20:49:54 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2012-03-14 20:49:54 +0000 |
commit | 1f0593e7caadb5bc5861d613b43ead8f663608be (patch) | |
tree | 3195b437e9d7884bda3a553c926bcfa31fc01f9f /src/script | |
parent | c7ae0b4db62a088f074c3d3631bced839a84ef51 (diff) | |
download | openttd-1f0593e7caadb5bc5861d613b43ead8f663608be.tar.xz |
(svn r24029) -Change: [NoAI] make AIEngine::IsArticulated return true if the articulated callback flag is set, don't try to run the callback.
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/api/script_engine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/script_engine.cpp b/src/script/api/script_engine.cpp index 54fc54cb1..adad559c5 100644 --- a/src/script/api/script_engine.cpp +++ b/src/script/api/script_engine.cpp @@ -233,7 +233,7 @@ if (!IsValidEngine(engine_id)) return false; if (GetVehicleType(engine_id) != ScriptVehicle::VT_ROAD && GetVehicleType(engine_id) != ScriptVehicle::VT_RAIL) return false; - return CountArticulatedParts(engine_id, true) != 0; + return IsArticulatedEngine(engine_id); } /* static */ ScriptAirport::PlaneType ScriptEngine::GetPlaneType(EngineID engine_id) |