Dan Albert b860d72c2d Prevent transfer splitting from leaving empty units.
If the transport were able to move exactly the quantity of units of the
given type remaining in the transfer without moving the whole order, the
transfer order would be left with instructions to transfer zero of that
unit. That's an invariant violation, and was resulting in _later_
transfers attempting to create a convoy with zero units, which pydcs
rightly rejects.

For example: if 2 Abrams and 2 Paladins are ordered to transfer from a
disconnected FOB to a distant location that is connected by road, and
only two cargo slots are available, that transfer could be split into:

```
{
    Abrams: 2
}
```

and

```
{
    Abrams: 0,
    Paladin: 2
}
```

Depending on the route, those airlifted units might end up still needing
road transit (we prefer short airlifts rather than direct routes because
it gives the player more opportunities to intercept enemy convoys). The
current turn would airlift the Abrams-only group and the Paladin group
would wait. On the next turn the Abrams would travel by road and the
Paladins would be airlifted. On the _third_ turn, the Paladins (and zero
Abrams) would generate an invalid convoy.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2761.
2023-03-18 14:03:41 -07:00
..
2023-01-28 12:57:03 -08:00
2022-03-03 17:11:01 -08:00
2023-03-13 18:48:20 -07:00
2023-02-02 17:15:21 -08:00
2023-01-04 12:58:36 -08:00
2022-09-27 18:34:23 -07:00
2022-02-22 00:10:31 -08:00
2023-01-04 12:58:36 -08:00
2022-05-07 18:08:26 +02:00
2023-01-04 12:58:36 -08:00
2021-11-20 18:49:14 -08:00
2022-09-03 14:12:21 -07:00
2022-03-28 20:32:19 +02:00
2022-10-15 17:26:27 -07:00
2021-11-20 18:49:14 -08:00
2022-09-27 18:34:23 -07:00
2021-11-21 11:30:39 -08:00
2022-04-19 10:41:16 +02:00
2022-04-19 10:41:16 +02:00
2022-11-20 12:57:42 -08:00
2022-11-19 13:17:18 -07:00