equal
deleted
inserted
replaced
335 default: return CMD_ERROR; |
335 default: return CMD_ERROR; |
336 } |
336 } |
337 |
337 |
338 if (sel_ord > v->num_orders) return CMD_ERROR; |
338 if (sel_ord > v->num_orders) return CMD_ERROR; |
339 |
339 |
340 if (IsOrderPoolFull()) return_cmd_error(STR_8831_NO_MORE_SPACE_FOR_ORDERS); |
340 if (!HasOrderPoolFree(1)) return_cmd_error(STR_8831_NO_MORE_SPACE_FOR_ORDERS); |
341 |
341 |
342 /* XXX - This limit is only here because the backuppedorders can't |
342 /* XXX - This limit is only here because the backuppedorders can't |
343 * handle any more then this.. */ |
343 * handle any more then this.. */ |
344 if (v->num_orders >= MAX_BACKUP_ORDER_COUNT) return_cmd_error(STR_8832_TOO_MANY_ORDERS); |
344 if (v->num_orders >= MAX_BACKUP_ORDER_COUNT) return_cmd_error(STR_8832_TOO_MANY_ORDERS); |
345 |
345 |