mirror of
https://github.com/ZDoom/zdbsp.git
synced 2024-11-10 06:31:35 +00:00
- 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:
parent
b6c764a94b
commit
5a5aafcce9
1 changed files with 5 additions and 5 deletions
10
wad.cpp
10
wad.cpp
|
@ -451,35 +451,35 @@ void FWadWriter::SafeWrite (const void *buffer, size_t size)
|
|||
|
||||
FWadWriter &FWadWriter::operator << (BYTE val)
|
||||
{
|
||||
SafeWrite (&val, 1);
|
||||
AddToLump (&val, 1);
|
||||
return *this;
|
||||
}
|
||||
|
||||
FWadWriter &FWadWriter::operator << (WORD val)
|
||||
{
|
||||
val = LittleShort(val);
|
||||
SafeWrite ((BYTE *)&val, 2);
|
||||
AddToLump ((BYTE *)&val, 2);
|
||||
return *this;
|
||||
}
|
||||
|
||||
FWadWriter &FWadWriter::operator << (SWORD val)
|
||||
{
|
||||
val = LittleShort(val);
|
||||
SafeWrite ((BYTE *)&val, 2);
|
||||
AddToLump ((BYTE *)&val, 2);
|
||||
return *this;
|
||||
}
|
||||
|
||||
FWadWriter &FWadWriter::operator << (DWORD val)
|
||||
{
|
||||
val = LittleLong(val);
|
||||
SafeWrite ((BYTE *)&val, 4);
|
||||
AddToLump ((BYTE *)&val, 4);
|
||||
return *this;
|
||||
}
|
||||
|
||||
FWadWriter &FWadWriter::operator << (fixed_t val)
|
||||
{
|
||||
val = LittleLong(val);
|
||||
SafeWrite ((BYTE *)&val, 4);
|
||||
AddToLump ((BYTE *)&val, 4);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue