add compability code for old savefiles
midgame saves (those that have [snapshot]) shoudn't have a [carryover_sides_start]
This commit is contained in:
parent
f25496ebc2
commit
c5301e5851
1 changed files with 4 additions and 0 deletions
|
@ -708,6 +708,10 @@ void convert_old_saves(config& cfg){
|
|||
snapshot.add_child("end_level_data", end_level);
|
||||
snapshot.remove_child("end_level",0);
|
||||
}
|
||||
if(cfg.has_child("carryover_sides_start"))
|
||||
{
|
||||
cfg.remove_child("carryover_sides_start", 0);
|
||||
}
|
||||
}
|
||||
|
||||
//1.12-1.13 end
|
||||
|
|
Loading…
Add table
Reference in a new issue