From 4e3fc4dcb0e8db3afbb50244d5f4e9aaf09bb72e Mon Sep 17 00:00:00 2001 From: SHIRAKATA Kentaro Date: Mon, 15 Aug 2022 15:08:24 +0900 Subject: [PATCH] remove unnecessary `if` --- src/mon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mon.c b/src/mon.c index cf51f083a..cec987a86 100644 --- 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; }