]> granicus.if.org Git - nethack/commitdiff
lint cleanup: '!mptr->mmove == 0'
authorPatR <rankin@nethack.org>
Sat, 30 Jul 2016 01:09:01 +0000 (18:09 -0700)
committerPatR <rankin@nethack.org>
Sat, 30 Jul 2016 01:09:01 +0000 (18:09 -0700)
The compiler whined about that, and rightly so.  It happens to yield
the right value by accident, so there should be no change in behavior.

src/muse.c

index 7b51290032c9ef4468122cb79bcc43939ecc8444..420c8564e0f32d5f2f8b9498fe34a8b087763cd8 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6 muse.c  $NHDT-Date: 1457254910 2016/03/06 09:01:50 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.72 $ */
+/* NetHack 3.6 muse.c  $NHDT-Date: 1469840918 2016/07/30 01:08:38 $  $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.78 $ */
 /*      Copyright (C) 1990 by Ken Arromdee                         */
 /* NetHack may be freely redistributed.  See license for details.  */
 
@@ -2369,7 +2369,7 @@ boolean by_you;
                 return muse_unslime(mon, obj, (struct trap *) 0, by_you);
 
         if (((t = t_at(mon->mx, mon->my)) == 0 || t->ttyp != FIRE_TRAP)
-            && !mon->mtrapped && !mptr->mmove == 0) {
+            && mptr->mmove && !mon->mtrapped) {
             int xy[2][8], x, y, idx, ridx, nxy = 0;
 
             for (x = mon->mx - 1; x <= mon->mx + 1; ++x)