mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: move *_surface_pressure() functions into struct dive
Seems natural in a C++ code base. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
4a165980e7
commit
d81ca005ab
6 changed files with 14 additions and 15 deletions
|
@ -434,7 +434,7 @@ static void save_dc(struct membuffer *b, const struct dive &dive, const struct d
|
|||
*/
|
||||
static void create_dive_buffer(const struct dive &dive, struct membuffer *b)
|
||||
{
|
||||
pressure_t surface_pressure = un_fixup_surface_pressure(&dive);
|
||||
pressure_t surface_pressure = dive.un_fixup_surface_pressure();
|
||||
if (dive.dcs[0].duration.seconds > 0)
|
||||
put_format(b, "duration %u:%02u min\n", FRACTION_TUPLE(dive.dcs[0].duration.seconds, 60));
|
||||
SAVE("rating", rating);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue