Some test cases for saving scenarios, and fix some bugs they revealed
- Fix variable town entry and saved item rects not being saved if they referenced an invalid town - Fix "blank" scenario timers being saved - Fix junk data appearing in timers - Output operators for location and rectangle types - Set timer node_type to 2 when loading from town record
This commit is contained in:
@@ -1595,6 +1595,7 @@ static void readTownFromXml(ticpp::Document&& data, cTown*& town, cScenario& sce
|
||||
if(num_timers >= 8)
|
||||
throw xBadNode(type, elem->Row(), elem->Column(), fname);
|
||||
readTimerFromXml(*elem, town->timers[num_timers]);
|
||||
town->timers[num_timers].node_type = 2;
|
||||
num_timers++;
|
||||
} else if(type == "flags") {
|
||||
Iterator<Element> flag;
|
||||
|
Reference in New Issue
Block a user