summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_vehicle.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-10-03 20:21:56 +0000
committerrubidium <rubidium@openttd.org>2011-10-03 20:21:56 +0000
commitf5caf07ee103dd10e134fc2a736e7716fdfe1bc8 (patch)
treefa09a2760db7372347deeddc170668ac7c5f51eb /src/ai/api/ai_vehicle.hpp
parent83e8f8bdd3720d08dd52caecca01927726f1784a (diff)
downloadopenttd-f5caf07ee103dd10e134fc2a736e7716fdfe1bc8.tar.xz
(svn r22988) -Fix: don't return ERR_UNKNOWN when the vehicle would become too long
Diffstat (limited to 'src/ai/api/ai_vehicle.hpp')
-rw-r--r--src/ai/api/ai_vehicle.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ai/api/ai_vehicle.hpp b/src/ai/api/ai_vehicle.hpp
index 7bd9120d1..bbcaac8b0 100644
--- a/src/ai/api/ai_vehicle.hpp
+++ b/src/ai/api/ai_vehicle.hpp
@@ -65,6 +65,8 @@ public:
/** Vehicle is without power */
ERR_VEHICLE_NO_POWER, // [STR_ERROR_TRAIN_START_NO_POWER]
+ /** Vehicle would get too long during construction. */
+ ERR_VEHICLE_TOO_LONG, // [STR_ERROR_TRAIN_TOO_LONG]
};
/**