Several more tests for scenario loading

This commit is contained in:
2015-07-07 17:10:09 -04:00
parent 42734c8599
commit 2218513aa5
16 changed files with 523 additions and 7 deletions

View File

@@ -757,7 +757,6 @@ void readScenarioFromXml(ticpp::Document&& data, cScenario& scenario) {
game->GetText(&scenario.init_spec);
} else if(type == "start-town") {
game->GetText(&scenario.which_town_start);
// TODO: Make sure town is valid
} else if(type == "town-start") {
scenario.where_start = readLocFromXml(*game);
} else if(type == "outdoor-start") {
@@ -776,7 +775,6 @@ void readScenarioFromXml(ticpp::Document&& data, cScenario& scenario) {
auto town_p = &scenario.town_mods[town_mods].spec;
location& loc = scenario.town_mods[town_mods];
loc = readLocFromXml(*game, "add-", "town", town_p);
// TODO: Make sure town is valid
town_mods++;
} else if(type == "special-item") {
scenario.special_items.emplace_back();