- added a pseudo-serializer for FLevelLocals pointers.

This doesn't really write out any info for the pointer, if the level does not match it just errors out.
This is both for quick detection of badly used level data and for automatic restoring of the pointer from the serializer's working level.

This also removed the temporary workarounds in DAutomap and DLevelScript to restore these pointers when a savegame is loaded.
This commit is contained in:
Christoph Oelckers 2019-01-26 21:23:19 +01:00
commit 9b1b6db85d
12 changed files with 152 additions and 90 deletions

View file

@ -3205,7 +3205,8 @@ void DAutomap::Serialize(FSerializer &arc)
("max_h", max_h)
("min_scale_mtof", min_scale_mtof)
("max_scale_mtof", max_scale_mtof)
("mapback", mapback);
("mapback", mapback)
("level", Level);
}