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
..
2022-08-30 07:20:33 -07:00
2022-08-25 13:38:12 -07:00
2017-04-29 13:32:55 -07:00
2020-10-24 09:51:37 -07:00
2021-07-23 11:22:43 -07:00
2020-09-29 16:13:03 -07:00
2022-11-08 10:43:47 -08:00
2021-07-23 11:22:43 -07:00
2021-07-23 11:22:43 -07:00
2018-10-21 19:55:09 +03:00
2022-11-08 10:43:47 -08:00
2022-03-13 15:07:33 -07:00
2022-03-12 08:28:32 -08:00
2021-07-23 11:16:00 -07:00
2023-02-05 14:32:09 +01:00
2019-12-13 07:04:00 -05:00
2017-04-29 13:32:55 -07:00
2020-03-10 17:42:54 -07:00
2020-03-10 17:42:54 -07:00
2020-05-03 15:02:21 -07:00
2022-06-04 14:19:05 -07:00