(svn r16922) -Codechange: unduplicate some vehicle CMD_*s and move the setting of the error message to a single place

This commit is contained in:
rubidium
2009-07-22 23:39:35 +00:00
parent 01eabc5f4c
commit f62b2f9c7e
5 changed files with 30 additions and 52 deletions

View File

@@ -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: