summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-05 09:12:54 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-05 09:12:54 -0700
commit5f79a804b925a8ffbcf933bb6fae4f764b518c8e (patch)
tree43e5d9dd7c7434966038789c0b2d0e28a7650e30 /dive.h
parent0f832f15d1a5c4a9877fa4d568daa6e87241ca97 (diff)
downloadsubsurface-5f79a804b925a8ffbcf933bb6fae4f764b518c8e.tar.gz
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>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dive.h b/dive.h
index 08194f6a9..65337303a 100644
--- a/dive.h
+++ b/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[];