Changeset f96ea9c in subsurface


Ignore:
Timestamp:
Dec 8, 2013, 12:42:15 AM (4 years ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
Mtest, android_test, dcDownload, foratdotde, gitMerge, gitdebug, gitpictures, ios, master, mergeKirigamiPort, pictimeshift, resolutionIndependence, spinner, testTomaz, testing, v4.0-branch, v4.0.3-branch, v4.2-branch, v4.4-branch, v4.5-branch
Children:
f84e4ef4
Parents:
01e3210
git-author:
Anton Lundin <glance@…> (12/07/13 14:54:19)
git-committer:
Dirk Hohndel <dirk@…> (12/08/13 00:42:15)
Message:

If we have defined a gas, default to that one.

If we start to define a gas, we should use that one by default instead
of air.

Signed-off-by: Anton Lundin <glance@…>
Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qt-ui/diveplanner.cpp

    r01e3210 rf96ea9c  
    12011201                milimeters = M_OR_FT(5, 15); // 5m / 15ft
    12021202                seconds = 600; // 10 min
     1203                //Default to the first defined gas, if we got one.
     1204                cylinder_t *cyl = &stagingDive->cylinder[0];
     1205                if (cyl) {
     1206                        o2 = cyl->gasmix.o2.permille;
     1207                        he = cyl->gasmix.he.permille;
     1208                }
    12031209        }
    12041210        if (o2 != -1)
Note: See TracChangeset for help on using the changeset viewer.