summaryrefslogtreecommitdiff
path: root/ai
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-08-31 15:57:38 +0000
committerDarkvater <Darkvater@openttd.org>2006-08-31 15:57:38 +0000
commit6919e7f8ea6608f1ec4f6d8146a1d02bb677ecb1 (patch)
tree664b0f8df7289d3dd2ad459cf9e79739afc4026d /ai
parent7c3262677147a5408f6088be0a80831fe3b2fb67 (diff)
downloadopenttd-6919e7f8ea6608f1ec4f6d8146a1d02bb677ecb1.tar.xz
(svn r6280) -Codechange: Use the same naming for trains as for other vehicles:
CMD_SEND_TRAIN_TO_DEPOT instead of CMD_TRAIN_GOTO_DEPOT
Diffstat (limited to 'ai')
-rw-r--r--ai/default/default.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ai/default/default.c b/ai/default/default.c
index cb20e2c18..ef794a9ca 100644
--- a/ai/default/default.c
+++ b/ai/default/default.c
@@ -305,7 +305,7 @@ static void AiHandleReplaceTrain(Player *p)
// wait until the vehicle reaches the depot.
if (!IsTileDepotType(v->tile, TRANSPORT_RAIL) || v->u.rail.track != 0x80 || !(v->vehstatus&VS_STOPPED)) {
- AiHandleGotoDepot(p, CMD_TRAIN_GOTO_DEPOT);
+ AiHandleGotoDepot(p, CMD_SEND_TRAIN_TO_DEPOT);
return;
}
@@ -3509,7 +3509,7 @@ static void AiStateSellVeh(Player *p)
if (!IsTileDepotType(v->tile, TRANSPORT_RAIL) || v->u.rail.track != 0x80 || !(v->vehstatus&VS_STOPPED)) {
if (v->current_order.type != OT_GOTO_DEPOT)
- DoCommand(0, v->index, 0, DC_EXEC, CMD_TRAIN_GOTO_DEPOT);
+ DoCommand(0, v->index, 0, DC_EXEC, CMD_SEND_TRAIN_TO_DEPOT);
goto going_to_depot;
}