- removed all old savegame handling

This commit is contained in:
Christoph Oelckers 2021-11-19 13:27:54 +01:00
parent 77a23e39c5
commit 771f5e3338

View file

@ -311,24 +311,6 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, DDukeActor& w, DDu
.Array("temo_wall", w.temp_walls, def->temp_walls,2)
("temp_sect", w.temp_sect, def->temp_sect)
.EndObject();
#ifdef OLD_SAVEGAME
// compat handling
if (SaveVersion < 12 && arc.isReading())
{
if (w.s->picnum == SECTOREFFECTOR)
{
if (w.s->lotag == SE_20_STRETCH_BRIDGE)
{
for (int i : {0, 1}) w.temp_walls[i] = &wall[w.temp_data[i+1]];
}
if (w.s->lotag == SE_128_GLASS_BREAKING)
{
w.temp_walls[0] = &wall[w.temp_data[2]];
}
}
}
#endif
}
return arc;
}