summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2011-04-17 17:28:33 +0000
committerpeter1138 <peter1138@openttd.org>2011-04-17 17:28:33 +0000
commit7b4620d66b0a0591de6f89960be47baaef8e0ddf (patch)
tree8a8c7a038e96f89d1eff933efcab1702390a725f
parentf4649c7ce7686a642eacb84e38ca3ac7e5bb8dd3 (diff)
downloadopenttd-7b4620d66b0a0591de6f89960be47baaef8e0ddf.tar.xz
(svn r22337) -Fix: Overly specific error message
-rw-r--r--src/lang/english.txt2
-rw-r--r--src/vehicle_cmd.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lang/english.txt b/src/lang/english.txt
index ca6d0fae9..b31bfae3b 100644
--- a/src/lang/english.txt
+++ b/src/lang/english.txt
@@ -3736,7 +3736,7 @@ STR_ERROR_VEHICLE_IS_DESTROYED :{WHITE}... vehi
# Specific vehicle errors
STR_ERROR_CAN_T_MAKE_TRAIN_PASS_SIGNAL :{WHITE}Can't make train pass signal at danger...
STR_ERROR_CAN_T_REVERSE_DIRECTION_TRAIN :{WHITE}Can't reverse direction of train...
-STR_ERROR_TRAIN_START_NO_CATENARY :This track lacks catenary, so the train can't start
+STR_ERROR_TRAIN_START_NO_POWER :Train has no power
STR_ERROR_CAN_T_MAKE_ROAD_VEHICLE_TURN :{WHITE}Can't make road vehicle turn around...
diff --git a/src/vehicle_cmd.cpp b/src/vehicle_cmd.cpp
index eb9860d39..ec341163e 100644
--- a/src/vehicle_cmd.cpp
+++ b/src/vehicle_cmd.cpp
@@ -416,7 +416,7 @@ CommandCost CmdStartStopVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1,
switch (v->type) {
case VEH_TRAIN:
- if ((v->vehstatus & VS_STOPPED) && Train::From(v)->gcache.cached_power == 0) return_cmd_error(STR_ERROR_TRAIN_START_NO_CATENARY);
+ if ((v->vehstatus & VS_STOPPED) && Train::From(v)->gcache.cached_power == 0) return_cmd_error(STR_ERROR_TRAIN_START_NO_POWER);
break;
case VEH_SHIP: