- rewrote the operator>> methods of FileReader as normal functions for clarity.
This commit is contained in:
parent
833dbee167
commit
0be1ed252b
12 changed files with 150 additions and 133 deletions
|
|
@ -92,7 +92,10 @@ FTexture *IMGZTexture_TryCreate(FileRdr & file, int lumpnum)
|
|||
file.Seek(0, FileRdr::SeekSet);
|
||||
if (file.Read(&magic, 4) != 4) return NULL;
|
||||
if (magic != MAKE_ID('I','M','G','Z')) return NULL;
|
||||
file >> w >> h >> l >> t;
|
||||
w = file.ReadUInt16();
|
||||
h = file.ReadUInt16();
|
||||
l = file.ReadInt16();
|
||||
t = file.ReadInt16();
|
||||
return new FIMGZTexture(lumpnum, w, h, l, t);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue