equal
deleted
inserted
replaced
350 * handle any more then this.. */ |
350 * handle any more then this.. */ |
351 if (v->num_orders >= MAX_BACKUP_ORDER_COUNT) return_cmd_error(STR_8832_TOO_MANY_ORDERS); |
351 if (v->num_orders >= MAX_BACKUP_ORDER_COUNT) return_cmd_error(STR_8832_TOO_MANY_ORDERS); |
352 |
352 |
353 /* For ships, make sure that the station is not too far away from the |
353 /* For ships, make sure that the station is not too far away from the |
354 * previous destination, for human players with new pathfinding disabled */ |
354 * previous destination, for human players with new pathfinding disabled */ |
355 if (v->type == VEH_Ship && IS_HUMAN_PLAYER(v->owner) && |
355 if (v->type == VEH_Ship && IsHumanPlayer(v->owner) && |
356 sel_ord != 0 && GetVehicleOrder(v, sel_ord - 1)->type == OT_GOTO_STATION |
356 sel_ord != 0 && GetVehicleOrder(v, sel_ord - 1)->type == OT_GOTO_STATION |
357 && !_patches.new_pathfinding_all) { |
357 && !_patches.new_pathfinding_all) { |
358 |
358 |
359 int dist = DistanceManhattan( |
359 int dist = DistanceManhattan( |
360 GetStation(GetVehicleOrder(v, sel_ord - 1)->dest)->xy, |
360 GetStation(GetVehicleOrder(v, sel_ord - 1)->dest)->xy, |