]> granicus.if.org Git - nethack/commitdiff
EXTRA_SANITY_CHECKS build fix
authorPatR <rankin@nethack.org>
Sun, 23 Dec 2018 20:13:37 +0000 (12:13 -0800)
committerPatR <rankin@nethack.org>
Sun, 23 Dec 2018 20:13:37 +0000 (12:13 -0800)
is if/else friendly and semi-colon friendly, but not comma friendly.

src/monmove.c

index 37b75234617a098c6c331defc049ed196c6f25fb..305ba4cbbfb3aa46f205b53251c9aad2f256810a 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.6 monmove.c       $NHDT-Date: 1545525307 2018/12/23 00:35:07 $  $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.110 $ */
+/* NetHack 3.6 monmove.c       $NHDT-Date: 1545596010 2018/12/23 20:13:30 $  $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.111 $ */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /*-Copyright (c) Michael Allison, 2006. */
 /* NetHack may be freely redistributed.  See license for details. */
@@ -1279,14 +1279,16 @@ register int after;
                 && ((levl[nix][niy].doormask & (D_LOCKED | D_CLOSED)) != 0)
                 && can_fog(mtmp)) {
                 if (sawmon) {
-                    remove_monster(nix, niy), place_monster(mtmp, omx, omy);
+                    remove_monster(nix, niy);
+                    place_monster(mtmp, omx, omy);
                     newsym(nix, niy), newsym(omx, omy);
                 }
                 if (vamp_shift(mtmp, &mons[PM_FOG_CLOUD], sawmon)) {
                     ptr = mtmp->data; /* update cached value */
                 }
                 if (sawmon) {
-                    remove_monster(omx, omy), place_monster(mtmp, nix, niy);
+                    remove_monster(omx, omy);
+                    place_monster(mtmp, nix, niy);
                     newsym(omx, omy), newsym(nix, niy);
                 }
             }