Write/read FOF flags as 32-bit not 16-bit, whoops

This commit is contained in:
Monster Iestyn 2016-04-16 18:06:26 +01:00
parent 7830a9e27b
commit f96b830f36

View file

@ -613,7 +613,7 @@ static void P_NetArchiveWorld(void)
WRITEUINT16(put, j); // save ffloor "number"
WRITEUINT8(put, fflr_diff);
if (fflr_diff & 1)
WRITEUINT16(put, rover->flags);
WRITEUINT32(put, rover->flags);
if (fflr_diff & 2)
WRITEINT16(put, rover->alpha);
}
@ -815,7 +815,7 @@ static void P_NetUnArchiveWorld(void)
fflr_diff = READUINT8(get);
if (fflr_diff & 1)
rover->flags = READUINT16(get);
rover->flags = READUINT32(get);
if (fflr_diff & 2)
rover->alpha = READINT16(get);