Save OS version to scenarios

This commit is contained in:
2015-08-17 23:22:50 -04:00
parent 8008ff6dac
commit a8dd1d3b3a
3 changed files with 12 additions and 2 deletions

View File

@@ -154,8 +154,7 @@ void writeScenarioToXml(ticpp::Printer&& data, cScenario& scenario) {
data.OpenElement("creator");
data.PushElement("type", "oboe");
data.PushElement("version", scenario.format_ed_version());
// TODO: fill <os> element
data.PushElement("os", "");
data.PushElement("os", get_os_version());
data.CloseElement("creator");
data.OpenElement("game");
data.PushElement("num-towns", scenario.towns.size());