- started implementing a JSON based serializer. Unfortunately it is far too slow to be of any real use.

This commit is contained in:
Christoph Oelckers 2016-09-18 13:26:34 +02:00
commit 9313a99e12
50 changed files with 16774 additions and 35 deletions

View file

@ -440,18 +440,15 @@ void P_SerializeWorld (FArchive &arc)
}
// do zones
unsigned numzones = Zones.Size();
arc << numzones;
if (arc.IsLoading())
{
if (zones != NULL)
{
delete[] zones;
}
zones = new zone_t[numzones];
Zones.Resize(numzones);
}
for (i = 0, zn = zones; i < numzones; ++i, ++zn)
for (i = 0, zn = &Zones[0]; i < numzones; ++i, ++zn)
{
arc << zn->Environment;
}