|
|
|
@ -403,15 +403,15 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile)
|
|
|
|
|
bool failed = false;
|
|
|
|
|
if (v->HasFullLoadOrder()) {
|
|
|
|
|
/* We don't allow unbunching if the vehicle has a full load order. */
|
|
|
|
|
ShowErrorMessage(STR_ERROR_CAN_T_INSERT_NEW_ORDER, STR_ERROR_UNBUNCHING_NO_UNBUNCHING_FULL_LOAD, WL_ERROR);
|
|
|
|
|
ShowErrorMessage(STR_ERROR_CAN_T_INSERT_NEW_ORDER, STR_ERROR_UNBUNCHING_NO_UNBUNCHING_FULL_LOAD, WL_INFO);
|
|
|
|
|
failed = true;
|
|
|
|
|
} else if (v->HasUnbunchingOrder()) {
|
|
|
|
|
/* Don't allow a new unbunching order if we already have one. */
|
|
|
|
|
ShowErrorMessage(STR_ERROR_CAN_T_INSERT_NEW_ORDER, STR_ERROR_UNBUNCHING_ONLY_ONE_ALLOWED, WL_ERROR);
|
|
|
|
|
ShowErrorMessage(STR_ERROR_CAN_T_INSERT_NEW_ORDER, STR_ERROR_UNBUNCHING_ONLY_ONE_ALLOWED, WL_INFO);
|
|
|
|
|
failed = true;
|
|
|
|
|
} else if (v->HasConditionalOrder()) {
|
|
|
|
|
/* We don't allow unbunching if the vehicle has a conditional order. */
|
|
|
|
|
ShowErrorMessage(STR_ERROR_CAN_T_INSERT_NEW_ORDER, STR_ERROR_UNBUNCHING_NO_UNBUNCHING_CONDITIONAL, WL_ERROR);
|
|
|
|
|
ShowErrorMessage(STR_ERROR_CAN_T_INSERT_NEW_ORDER, STR_ERROR_UNBUNCHING_NO_UNBUNCHING_CONDITIONAL, WL_INFO);
|
|
|
|
|
failed = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|