diff src/depot_gui.cpp @ 12485:cf4a59021c9d draft

(svn r16922) -Codechange: unduplicate some vehicle CMD_*s and move the setting of the error message to a single place
author rubidium <rubidium@openttd.org>
date Wed, 22 Jul 2009 23:39:35 +0000
parents 4cdaa2d25b01
children e41943276802
line wrap: on
line diff
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -914,7 +914,7 @@
 						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: