mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Rename is_gas_used to is_gas_used
This function operates on cylinder ids, so its actually about cylinders not gases. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3cdd4df8e8
commit
810880ea1d
1 changed files with 3 additions and 3 deletions
|
@ -292,7 +292,7 @@ void get_selected_dives_text(char *buffer, int size)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool is_gas_used(struct dive *dive, int idx)
|
static bool is_cylinder_used(struct dive *dive, int idx)
|
||||||
{
|
{
|
||||||
struct divecomputer *dc;
|
struct divecomputer *dc;
|
||||||
bool firstGasExplicit = false;
|
bool firstGasExplicit = false;
|
||||||
|
@ -321,7 +321,7 @@ void get_gas_used(struct dive *dive, volume_t gases[MAX_CYLINDERS])
|
||||||
cylinder_t *cyl = &dive->cylinder[idx];
|
cylinder_t *cyl = &dive->cylinder[idx];
|
||||||
pressure_t start, end;
|
pressure_t start, end;
|
||||||
|
|
||||||
if (!is_gas_used(dive, idx))
|
if (!is_cylinder_used(dive, idx))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
start = cyl->start.mbar ? cyl->start : cyl->sample_start;
|
start = cyl->start.mbar ? cyl->start : cyl->sample_start;
|
||||||
|
@ -341,7 +341,7 @@ char *get_gaslist(struct dive *dive)
|
||||||
buf[0] = '\0';
|
buf[0] = '\0';
|
||||||
for (idx = 0; idx < MAX_CYLINDERS; idx++) {
|
for (idx = 0; idx < MAX_CYLINDERS; idx++) {
|
||||||
cylinder_t *cyl;
|
cylinder_t *cyl;
|
||||||
if (!is_gas_used(dive, idx))
|
if (!is_cylinder_used(dive, idx))
|
||||||
continue;
|
continue;
|
||||||
cyl = &dive->cylinder[idx];
|
cyl = &dive->cylinder[idx];
|
||||||
if (offset > 0) {
|
if (offset > 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue