Save CCR cylinder use in XML and git

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-11-16 22:11:34 +00:00
parent 84dc8b8962
commit 202c5cbfeb
6 changed files with 31 additions and 1 deletions

View file

@ -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);
}