mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Sanitize and fix cylinder pressure overview
Doing per-dive cylinder start/end pressures is insane, when we can have up to eight cylinders. The cylinder start/end pressure cannot be per dive, it needs to be per cylinder. This makes the save format cleaner too, we have all the cylinder data in just one place. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
0f832f15d1
commit
5f79a804b9
5 changed files with 40 additions and 29 deletions
2
dive.h
2
dive.h
|
|
@ -81,6 +81,7 @@ typedef struct {
|
|||
typedef struct {
|
||||
cylinder_type_t type;
|
||||
gasmix_t gasmix;
|
||||
pressure_t start, end;
|
||||
} cylinder_t;
|
||||
|
||||
static inline int to_feet(depth_t depth)
|
||||
|
|
@ -118,7 +119,6 @@ struct dive {
|
|||
duration_t duration, surfacetime;
|
||||
depth_t visibility;
|
||||
temperature_t airtemp, watertemp;
|
||||
pressure_t beginning_pressure, end_pressure;
|
||||
cylinder_t cylinder[MAX_CYLINDERS];
|
||||
int samples;
|
||||
struct sample sample[];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue