Remove old tag list netgame packing/unpacking.

This commit is contained in:
Nev3r 2020-04-17 23:30:47 +02:00
parent 9eb17e4104
commit 7c11091c40

View file

@ -851,8 +851,6 @@ static void P_NetArchiveWorld(void)
if (!Tag_Compare(&ss->tags, &spawnss->tags))
diff2 |= SD_TAG;
if (ss->nexttag != spawnss->nexttag || ss->firsttag != spawnss->firsttag)
diff3 |= SD_TAGLIST;
if (ss->extra_colormap != spawnss->extra_colormap)
diff3 |= SD_COLORMAP;
@ -918,11 +916,6 @@ static void P_NetArchiveWorld(void)
for (j = 0; j < ss->tags.count; j++)
WRITEINT16(put, ss->tags.tags[j]);
}
if (diff3 & SD_TAGLIST) // save both firsttag and nexttag
{ // either of these could be changed even if tag isn't
WRITEINT32(put, ss->firsttag);
WRITEINT32(put, ss->nexttag);
}
if (diff3 & SD_COLORMAP)
WRITEUINT32(put, CheckAddNetColormapToList(ss->extra_colormap));
@ -1165,11 +1158,6 @@ static void P_NetUnArchiveWorld(void)
for (j = 0; j < ncount; j++)
sectors[i].tags.tags[j] = READINT16(get);
}
if (diff3 & SD_TAGLIST)
{
sectors[i].firsttag = READINT32(get);
sectors[i].nexttag = READINT32(get);
}
if (diff3 & SD_COLORMAP)
sectors[i].extra_colormap = GetNetColormapFromList(READUINT32(get));