mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove is_air() and convert its users to gasmix
Also make gasname() and get_gas_string() global functions (which allows us to delete code elsewhere). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ee36bf8bf3
commit
28093ae957
5 changed files with 26 additions and 36 deletions
2
dive.c
2
dive.c
|
|
@ -546,7 +546,7 @@ void sanitize_gasmix(struct gasmix *mix)
|
|||
if (!o2)
|
||||
return;
|
||||
/* 20.8% to 21% O2 is just air */
|
||||
if (is_air(o2, he)) {
|
||||
if (gasmix_is_air(mix)) {
|
||||
mix->o2.permille = 0;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue