]> granicus.if.org Git - nethack/commitdiff
Init long worm even if it does not have a tail
authorPasi Kallinen <paxed@alt.org>
Mon, 19 Nov 2018 20:09:14 +0000 (22:09 +0200)
committerPasi Kallinen <paxed@alt.org>
Mon, 19 Nov 2018 20:09:18 +0000 (22:09 +0200)
Long worms with no tail parts still apparently need to have
the zero-length tail placed.

src/mon.c

index 56c5da13f887c8416827564b5b7d4d01dee5453e..785b691b51134628092a5c23d7a1a0b750b7abe5 100644 (file)
--- a/src/mon.c
+++ b/src/mon.c
@@ -3577,8 +3577,7 @@ boolean msg;      /* "The oldmon turns into a newmon!" */
 #endif
         /* we can now create worms with tails - 11/91 */
         initworm(mtmp, rn2(5));
-        if (count_wsegs(mtmp))
-            place_worm_tail_randomly(mtmp, mtmp->mx, mtmp->my);
+        place_worm_tail_randomly(mtmp, mtmp->mx, mtmp->my);
     }
 
     newsym(mtmp->mx, mtmp->my);