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:
2015-07-01 18:05:42 -04:00
parent 9a2881ef66
commit 1f5a1118f8
13 changed files with 211 additions and 17 deletions

View File

@@ -37,6 +37,7 @@ short mode_count = 0;
cOutdoors* current_terrain;
short pixel_depth,old_depth = 8;
std::string scenario_temp_dir_name = "ed_scenario";
bool change_made = false, ae_loading = false;
// Numbers of current areas being edited