diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-12-17 09:09:49 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-12-17 08:10:56 -0800 |
commit | daebd0ad0e49f7577a45c182d738f03b157d05df (patch) | |
tree | 886ca68b5786843c2fd1cafe68dacb97e6763c99 | |
parent | 8d931925375a049b7d9903589f2f3effd80eea3f (diff) | |
download | subsurface-daebd0ad0e49f7577a45c182d738f03b157d05df.tar.gz |
core: correct AL* tankinfo sizes.
Recently (d16a9f118a) the tankinfo table was made dynamic, which
means that the default tankinfos are added programatically.
Thereby, the wrong function was used for AL* type of cylinders:
metric instead of imperial. Fix those.
Reported-by: Michael Andreen <harv@ruin.nu>
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r-- | core/equipment.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/equipment.c b/core/equipment.c index af6f092a9..0fd7644b7 100644 --- a/core/equipment.c +++ b/core/equipment.c @@ -253,12 +253,12 @@ static void add_default_tank_infos(struct tank_info_table *table) add_tank_info_metric(table, "11.1ℓ", 11100, 0); /* Most common AL cylinders */ - add_tank_info_metric(table, "AL40", 40, 3000); - add_tank_info_metric(table, "AL50", 50, 3000); - add_tank_info_metric(table, "AL63", 63, 3000); - add_tank_info_metric(table, "AL72", 72, 3000); - add_tank_info_metric(table, "AL80", 80, 3000); - add_tank_info_metric(table, "AL100", 100, 3300); + add_tank_info_imperial(table, "AL40", 40, 3000); + add_tank_info_imperial(table, "AL50", 50, 3000); + add_tank_info_imperial(table, "AL63", 63, 3000); + add_tank_info_imperial(table, "AL72", 72, 3000); + add_tank_info_imperial(table, "AL80", 80, 3000); + add_tank_info_imperial(table, "AL100", 100, 3300); /* Metric AL cylinders */ add_tank_info_metric(table, "ALU7", 7000, 200); |