- Fixed: ZSBSP did not calculate the lump length for uncompressed extended nodes.

(Apparently ZDoom never checks this lump's length.)


SVN r2289 (trunk)
This commit is contained in:
Christoph Oelckers 2010-04-17 22:57:15 +00:00
parent b6c764a94b
commit 5a5aafcce9

10
wad.cpp
View file

@ -451,35 +451,35 @@ void FWadWriter::SafeWrite (const void *buffer, size_t size)
FWadWriter &FWadWriter::operator << (BYTE val) FWadWriter &FWadWriter::operator << (BYTE val)
{ {
SafeWrite (&val, 1); AddToLump (&val, 1);
return *this; return *this;
} }
FWadWriter &FWadWriter::operator << (WORD val) FWadWriter &FWadWriter::operator << (WORD val)
{ {
val = LittleShort(val); val = LittleShort(val);
SafeWrite ((BYTE *)&val, 2); AddToLump ((BYTE *)&val, 2);
return *this; return *this;
} }
FWadWriter &FWadWriter::operator << (SWORD val) FWadWriter &FWadWriter::operator << (SWORD val)
{ {
val = LittleShort(val); val = LittleShort(val);
SafeWrite ((BYTE *)&val, 2); AddToLump ((BYTE *)&val, 2);
return *this; return *this;
} }
FWadWriter &FWadWriter::operator << (DWORD val) FWadWriter &FWadWriter::operator << (DWORD val)
{ {
val = LittleLong(val); val = LittleLong(val);
SafeWrite ((BYTE *)&val, 4); AddToLump ((BYTE *)&val, 4);
return *this; return *this;
} }
FWadWriter &FWadWriter::operator << (fixed_t val) FWadWriter &FWadWriter::operator << (fixed_t val)
{ {
val = LittleLong(val); val = LittleLong(val);
SafeWrite ((BYTE *)&val, 4); AddToLump ((BYTE *)&val, 4);
return *this; return *this;
} }