From b9946b89fa3663318ac947778dbf701b1e4ebde0 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 31 May 2014 13:49:51 -0700 Subject: Planner: look harder to find the right gas Silly bug - while we normally fill the cylinders in a tight group with no "null" cylinders in the middle, since we copy from an existing dive and since that may end up with an odd sequence of cylinders, we need to continue looking at ALL cylinders and not stop with the first one that's empty. Signed-off-by: Dirk Hohndel --- planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planner.c b/planner.c index 405b07e02..1feb8467d 100644 --- a/planner.c +++ b/planner.c @@ -209,7 +209,7 @@ static int verify_gas_exists(struct dive *dive, int o2, int he) cyl = dive->cylinder + i; mix = &cyl->gasmix; if (cylinder_nodata(cyl)) - break; + continue; if (gasmix_distance(mix, &mix_in) < 200) return i; } -- cgit v1.2.3-70-g09d2