Michael Keller ec0c6833a0 Fix invalid bailout gas choice when planning a CCR dive.
Fixes a bug reported in
https://groups.google.com/g/subsurface-divelog/c/8N3cTz2Zv5E:
When planning a CCR dive with OC bailout, the diluent gas may be chosen
as the first OC bailout gas, despite being set up with a use type of
'diluent', and likely not being available for open circuit breathing.
`best_first_ascend_cylinder` is now initialised to an invalid value
(instead of the first cylinder, which may or may not be a diluent
 cylinder), and its subsequent use is guarded by a validity check.

Signed-off-by: Michael Keller <github@ike.ch>
2023-02-17 10:49:24 +01:00
..
2021-04-19 12:51:01 -07:00
2018-07-26 16:32:51 +03:00
2018-07-26 16:32:51 +03:00
2018-07-26 16:32:51 +03:00
2021-04-19 12:51:01 -07:00
2018-07-26 16:32:51 +03:00
2022-03-12 08:28:32 -08:00
2021-04-19 12:51:01 -07:00
2019-12-29 12:32:02 -08:00
2019-12-29 12:31:43 -08:00
2019-12-25 02:57:42 +09:00
2021-04-19 12:51:01 -07:00
2018-07-26 16:32:51 +03:00
2018-07-26 16:32:51 +03:00