Several little tweaks and fixes
- Fix some uninitialized fields getting populated with random data - Fix identity of last edited town and outdoor section not being saved - Fix editor sometimes saving to application directory instead of overwriting the loaded scenario - Fix town specials being saved to outdoors list and vice versa - Fix right-most column of map not being loaded properly - Fix town entry node for start town being called after the first turn of the scenario - Add option to call a special node at startup (right after the intro dialog)
This commit is contained in:
@@ -696,6 +696,8 @@ static void readScenarioFromXml(ticpp::Document&& data, cScenario& scenario) {
|
||||
int h;
|
||||
game->GetText(&h);
|
||||
scenario.outdoors.resize(scenario.outdoors.width(), h);
|
||||
} else if(type == "on-init") {
|
||||
game->GetText(&scenario.init_spec);
|
||||
} else if(type == "start-town") {
|
||||
game->GetText(&scenario.which_town_start);
|
||||
// TODO: Make sure town is valid
|
||||
|
Reference in New Issue
Block a user