mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Save CCR cylinder use in XML and git
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
84dc8b8962
commit
202c5cbfeb
6 changed files with 31 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue