Init long worm even if it does not have a tail

Long worms with no tail parts still apparently need to have
the zero-length tail placed.
This commit is contained in:
Pasi Kallinen
2018-11-19 22:09:14 +02:00
parent 20b47b5bbd
commit 5acddebb3c

View File

@@ -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);