pull request #853 - remove useless 'if'

Pull request from argrath:  offending code is
|  if (function())
|    return FALSE;
|  return FALSE;
so testing the function's return value is pointless.

Closes #863
This commit is contained in:
PatR
2022-08-19 06:23:24 -07:00

View File

@@ -1050,8 +1050,7 @@ movemon_singlemon(struct monst *mtmp)
&& fightm(mtmp))
return FALSE; /* mon might have died */
}
if (dochugw(mtmp, TRUE)) /* otherwise just move the monster */
return FALSE;
dochugw(mtmp, TRUE); /* otherwise just move the monster */
return FALSE;
}