Scenario format tweaks

- Fix monster attitude enumerator not being reflected in schemas
- Store the sound ID for sound names, instead of the index into the sound name array
This commit is contained in:
2015-07-09 20:32:45 -04:00
parent 07323b393a
commit 5458bc0d7b
5 changed files with 29 additions and 4 deletions

View File

@@ -347,7 +347,7 @@ void writeScenarioToXml(ticpp::Printer&& data, cScenario& scenario) {
for(int i = 0; i < scenario.snd_names.size(); i++) {
if(scenario.snd_names[i].empty()) continue;
data.OpenElement("sound");
data.PushAttribute("id", i);
data.PushAttribute("id", i + 100);
data.PushText(scenario.snd_names[i]);
data.CloseElement("sound");
}