mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Updated strategy for removing cylinders
Change the strategy when to allow cylinder removal from a dive: - Not remove when cylinder has gas switch events, in any other cases allow removal - Remove this whole "cylinder with same gas" thing being a criteria for cylinder removal When removing a cylinder which has corresponding pressure info in samples, also remove this pressure info from the samples. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
cd5e17cf79
commit
4cbf8b87a3
5 changed files with 42 additions and 37 deletions
|
|
@ -812,6 +812,7 @@ extern void free_events(struct event *ev);
|
|||
extern void copy_cylinders(struct dive *s, struct dive *d, bool used_only);
|
||||
extern void copy_samples(struct divecomputer *s, struct divecomputer *d);
|
||||
extern bool is_cylinder_used(struct dive *dive, int idx);
|
||||
extern bool is_cylinder_prot(struct dive *dive, int idx);
|
||||
extern void fill_default_cylinder(cylinder_t *cyl);
|
||||
extern void add_gas_switch_event(struct dive *dive, struct divecomputer *dc, int time, int idx);
|
||||
extern struct event *add_event(struct divecomputer *dc, unsigned int time, int type, int flags, int value, const char *name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue