mirror of https://github.com/OpenTTD/OpenTTD
Fix ab315d0: Don't show "insert order" errors in the console (#12245)
parent
e0e0d5f8fb
commit
82430a1086
|
@ -403,15 +403,15 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile)
|
||||||
bool failed = false;
|
bool failed = false;
|
||||||
if (v->HasFullLoadOrder()) {
|
if (v->HasFullLoadOrder()) {
|
||||||
/* We don't allow unbunching if the vehicle has a full load order. */
|
/* 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;
|
failed = true;
|
||||||
} else if (v->HasUnbunchingOrder()) {
|
} else if (v->HasUnbunchingOrder()) {
|
||||||
/* Don't allow a new unbunching order if we already have one. */
|
/* 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;
|
failed = true;
|
||||||
} else if (v->HasConditionalOrder()) {
|
} else if (v->HasConditionalOrder()) {
|
||||||
/* We don't allow unbunching if the vehicle has a conditional order. */
|
/* 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;
|
failed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue