1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 17:19:09 +00:00

Fix ab315d0: Don't show "insert order" errors in the console

This commit is contained in:
glx22
2024-03-09 16:51:46 +01:00
parent e0e0d5f8fb
commit ec8c159c03

View File

@@ -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;
} }