diff options
author | rubidium <rubidium@openttd.org> | 2009-07-22 23:39:35 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-22 23:39:35 +0000 |
commit | b04ba7dcea92039c2e04f6ce9280fa3d488ebc3f (patch) | |
tree | 5d956d8a7d930305f4630976732c0985cad07323 /src/depot_gui.cpp | |
parent | 9980af289835021ef605f9f452d1f289145c6314 (diff) | |
download | openttd-b04ba7dcea92039c2e04f6ce9280fa3d488ebc3f.tar.xz |
(svn r16922) -Codechange: unduplicate some vehicle CMD_*s and move the setting of the error message to a single place
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r-- | src/depot_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 458911d36..457bcdc84 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -914,7 +914,7 @@ struct DepotWindow : Window { BackupVehicleOrders(v); } - if (!DoCommandP(v->tile, v->index, sell_cmd, GetCmdSellVeh(v->type) | CMD_MSG(STR_ERROR_CAN_T_SELL_TRAIN + v->type)) && is_engine) _backup_orders_tile = 0; + if (!DoCommandP(v->tile, v->index, sell_cmd, GetCmdSellVeh(v->type)) && is_engine) _backup_orders_tile = 0; } break; default: |