diff options
author | Robert C. Helling <helling@atdotde.de> | 2015-05-09 21:55:59 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-11 07:57:09 -0700 |
commit | 698b2b133fb43cfa2c28f7639662f3d787627c30 (patch) | |
tree | 2583da7e9a7f19e67793e1f261f70457e0ed2c65 /dive.h | |
parent | 3edec7c97dac71f288d65fd0e86fc14c69649d9d (diff) | |
download | subsurface-698b2b133fb43cfa2c28f7639662f3d787627c30.tar.gz |
Only add disclaimer and runtime table if we added deco to replanne dive
As a side effect this changes the signature of plan(): Before it
returned an int that was supposed to be possibly an error but
we never bothered to check it. So now it's bool indicating if the
planner did add stops.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -819,7 +819,7 @@ struct divedatapoint *create_dp(int time_incr, int depth, struct gasmix gasmix, #if DEBUG_PLAN void dump_plan(struct diveplan *diveplan); #endif -int plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool show_disclaimer); +bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool show_disclaimer); void delete_single_dive(int idx); struct event *get_next_event(struct event *event, const char *name); |