]> granicus.if.org Git - nethack/commitdiff
short int
authorcohrs <cohrs>
Fri, 30 Aug 2002 03:11:22 +0000 (03:11 +0000)
committercohrs <cohrs>
Fri, 30 Aug 2002 03:11:22 +0000 (03:11 +0000)
A fix from <Someone>: "this code only claims to inform the leader if mshort
is set i.E. sizeof(int)<=16."

src/makemon.c

index b1ff40e812b89f651afb4c5ef5050fe8f877b3e9..3dd99daca5beceafec7f5c6e68a27432e0ab91ec 100644 (file)
@@ -893,7 +893,7 @@ register int        mmflags;
        if (In_sokoban(&u.uz) && !mindless(ptr))  /* know about traps here */
            mtmp->mtrapseen = (1L << (PIT - 1)) | (1L << (HOLE - 1));
        if (ptr->msound == MS_LEADER)           /* leader knows about portal */
-           mtmp->mtrapseen |= (1 << (MAGIC_PORTAL-1));
+           mtmp->mtrapseen |= (1L << (MAGIC_PORTAL-1));
 
        place_monster(mtmp, x, y);
        mtmp->mcansee = mtmp->mcanmove = TRUE;