mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-12 13:16:16 +00:00
Deal with some of the whitespace issues in planner.c
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
fbaeeec807
commit
414d7f2632
1 changed files with 21 additions and 21 deletions
|
@ -411,7 +411,7 @@ struct divedatapoint *plan_add_segment(struct diveplan *diveplan, int duration,
|
||||||
struct divedatapoint *dp = create_dp(duration, depth, cylinderid, po2);
|
struct divedatapoint *dp = create_dp(duration, depth, cylinderid, po2);
|
||||||
dp->entered = entered;
|
dp->entered = entered;
|
||||||
add_to_end_of_diveplan(diveplan, dp);
|
add_to_end_of_diveplan(diveplan, dp);
|
||||||
return (dp);
|
return dp;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct gaschanges {
|
struct gaschanges {
|
||||||
|
@ -1089,7 +1089,7 @@ bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool
|
||||||
transitiontime = depth / 75; /* this still needs to be made configurable */
|
transitiontime = depth / 75; /* this still needs to be made configurable */
|
||||||
plan_add_segment(diveplan, transitiontime, 0, current_cylinder, po2, false);
|
plan_add_segment(diveplan, transitiontime, 0, current_cylinder, po2, false);
|
||||||
create_dive_from_plan(diveplan, is_planner);
|
create_dive_from_plan(diveplan, is_planner);
|
||||||
return(false);
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG_PLAN & 4
|
#if DEBUG_PLAN & 4
|
||||||
|
@ -1177,7 +1177,7 @@ bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool
|
||||||
|
|
||||||
free(stoplevels);
|
free(stoplevels);
|
||||||
free(gaschanges);
|
free(gaschanges);
|
||||||
return(false);
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (best_first_ascend_cylinder != current_cylinder) {
|
if (best_first_ascend_cylinder != current_cylinder) {
|
||||||
|
@ -1404,7 +1404,7 @@ bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool
|
||||||
plan_add_segment(diveplan, clock - previous_point_time, 0, current_cylinder, po2, false);
|
plan_add_segment(diveplan, clock - previous_point_time, 0, current_cylinder, po2, false);
|
||||||
if (decoMode() == VPMB) {
|
if (decoMode() == VPMB) {
|
||||||
diveplan->eff_gfhigh = rint(100.0 * regressionb());
|
diveplan->eff_gfhigh = rint(100.0 * regressionb());
|
||||||
diveplan->eff_gflow = rint(100*(regressiona() * first_stop_depth + regressionb()));
|
diveplan->eff_gflow = rint(100.0 * (regressiona() * first_stop_depth + regressionb()));
|
||||||
}
|
}
|
||||||
|
|
||||||
create_dive_from_plan(diveplan, is_planner);
|
create_dive_from_plan(diveplan, is_planner);
|
||||||
|
|
Loading…
Add table
Reference in a new issue