- 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
|
|
@ -768,7 +768,7 @@ void FTextureManager::AddPatches (int lumpnum)
|
|||
uint32_t numpatches, i;
|
||||
char name[9];
|
||||
|
||||
file >> numpatches;
|
||||
numpatches = file.ReadUInt32();
|
||||
name[8] = '\0';
|
||||
|
||||
for (i = 0; i < numpatches; ++i)
|
||||
|
|
@ -1186,9 +1186,8 @@ int FTextureManager::CountLumpTextures (int lumpnum)
|
|||
if (lumpnum >= 0)
|
||||
{
|
||||
auto file = Wads.OpenLumpReader (lumpnum);
|
||||
uint32_t numtex;
|
||||
uint32_t numtex = file.ReadUInt32();;
|
||||
|
||||
file >> numtex;
|
||||
return int(numtex) >= 0 ? numtex : 0;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue