]> granicus.if.org Git - nethack/commitdiff
Remove duplicate lines
authorPasi Kallinen <paxed@alt.org>
Sat, 5 Dec 2020 17:00:19 +0000 (19:00 +0200)
committerPasi Kallinen <paxed@alt.org>
Sat, 5 Dec 2020 17:00:19 +0000 (19:00 +0200)
src/mon.c

index 76ed3b28ee13c3d2f3ff1c0f2ae53a3bab31fe17..e203e71d73980a61834b60b611fb80982b3ad85c 100644 (file)
--- a/src/mon.c
+++ b/src/mon.c
@@ -1586,17 +1586,11 @@ struct monst *mtmp;
     /* unicorn may not be able to avoid hero on a noteleport level */
     if (is_unicorn(mtmp->data) && !noteleport_level(mtmp))
         allowflags |= NOTONL;
-    if (passes_walls(mtmp->data))
-        allowflags |= (ALLOW_WALL | ALLOW_ROCK);
-    if (passes_bars(mtmp->data))
-        allowflags |= ALLOW_BARS;
     if (is_human(mtmp->data) || mtmp->data == &mons[PM_MINOTAUR])
         allowflags |= ALLOW_SSM;
     if ((is_undead(mtmp->data) && mtmp->data->mlet != S_GHOST)
         || is_vampshifter(mtmp))
         allowflags |= NOGARLIC;
-    if (throws_rocks(mtmp->data))
-        allowflags |= ALLOW_ROCK;
 
     return allowflags;
 }