]> granicus.if.org Git - nethack/commitdiff
remove unnecessary `if`
authorSHIRAKATA Kentaro <argrath@ub32.org>
Mon, 15 Aug 2022 06:08:24 +0000 (15:08 +0900)
committerPatR <rankin@nethack.org>
Fri, 19 Aug 2022 13:22:01 +0000 (06:22 -0700)
src/mon.c

index cf51f083a160fcf4a8ee18c309c6fb97f06b6eea..cec987a863f482da063857a6173c57e1a99a5812 100644 (file)
--- a/src/mon.c
+++ b/src/mon.c
@@ -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;
 }