summaryrefslogtreecommitdiff
path: root/src/rail_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-22 20:17:07 +0000
committerrubidium <rubidium@openttd.org>2009-07-22 20:17:07 +0000
commit2962d8f0fc12699e2e952128c8f85b297c79e6b8 (patch)
tree05e8598bbad6f942ed1dd9a98823ea79cf41f175 /src/rail_cmd.cpp
parentc17c31b5b69d982f11859772fc4f2c9acef41555 (diff)
downloadopenttd-2962d8f0fc12699e2e952128c8f85b297c79e6b8.tar.xz
(svn r16920) -Codechange: shuffle some strings around to simplify looking up vehicle type specific strings for a specific message
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r--src/rail_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp
index 88eea4f30..881f09413 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -95,7 +95,7 @@ Vehicle *EnsureNoTrainOnTrackProc(Vehicle *v, void *data)
Train *t = Train::From(v);
if ((t->track != rail_bits) && !TracksOverlap(t->track | rail_bits)) return NULL;
- _error_message = VehicleInTheWayErrMsg(v);
+ _error_message = STR_ERROR_TRAIN_IN_THE_WAY + v->type;
return v;
}