diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-11-16 22:11:34 +0000 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-11-16 22:13:12 +0000 |
commit | 202c5cbfeb6888b05ae4b14b4f563666bc6ca763 (patch) | |
tree | e99552b1afb08bf86e50a930ba7c8f1c4eb9fc4e /load-git.c | |
parent | 84dc8b8962ae8a4a75ca1ec81acd09989f757c98 (diff) | |
download | subsurface-202c5cbfeb6888b05ae4b14b4f563666bc6ca763.tar.gz |
Save CCR cylinder use in XML and git
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'load-git.c')
-rw-r--r-- | load-git.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/load-git.c b/load-git.c index 53172f61e..9cf6baf6c 100644 --- a/load-git.c +++ b/load-git.c @@ -254,6 +254,14 @@ static void parse_cylinder_keyvalue(void *_cylinder, const char *key, const char cylinder->end = get_pressure(value); return; } + if (!strcmp(key, "use")) { + for (enum cylinderuse i = 0; i < NUM_GAS_USE; i++) { + if (same_string(value, cylinderuse_text[i])) { + cylinder->cylinder_use = i; + return; + } + } + } report_error("Unknown cylinder key/value pair (%s/%s)", key, value); } |