Remove useless if statement
If conf is at eof, linePos and command.Size() will be 0, and the other statements will not run due to eof checks and pointer checks
This commit is contained in:
parent
0835fe0eab
commit
ba050c112e
1 changed files with 0 additions and 4 deletions
|
|
@ -183,10 +183,6 @@ void D_LoadWadSettings ()
|
|||
{
|
||||
command.Push(conf[linePos]);
|
||||
}
|
||||
if (linePos == 0 && conf >= eof) // End of file
|
||||
{
|
||||
break;
|
||||
}
|
||||
// Increment 'conf' pointer to next line
|
||||
conf += linePos;
|
||||
while (conf < eof && (*conf == '\n' || *conf == '\r'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue