# HG changeset patch # User John "Elwin" Edwards # Date 1618534534 14400 # Node ID 3900f3cfe07db3fbcae1c98b2285be2e7fdf146b # Parent e52a8a7ad4c57b80e9b7d4ae586019ac878ca344 Rogue V4: fix arithmetic operations on boolean variables. Monsters created by scrolls should now have their placement randomized correctly again. diff -r e52a8a7ad4c5 -r 3900f3cfe07d rogue4/passages.c --- a/rogue4/passages.c Wed Apr 14 18:55:33 2021 -0400 +++ b/rogue4/passages.c Thu Apr 15 20:55:34 2021 -0400 @@ -329,7 +329,7 @@ for (rp = rooms; rp < &rooms[MAXROOMS]; rp++) for (i = 0; i < rp->r_nexits; i++) { - newpnum++; + newpnum = TRUE; numpass(rp->r_exit[i].y, rp->r_exit[i].x); } } diff -r e52a8a7ad4c5 -r 3900f3cfe07d rogue4/potions.c --- a/rogue4/potions.c Wed Apr 14 18:55:33 2021 -0400 +++ b/rogue4/potions.c Thu Apr 15 20:55:34 2021 -0400 @@ -246,7 +246,7 @@ if (!can_see) { standend(); - add_new++; + add_new = TRUE; } } } diff -r e52a8a7ad4c5 -r 3900f3cfe07d rogue4/scrolls.c --- a/rogue4/scrolls.c Wed Apr 14 18:55:33 2021 -0400 +++ b/rogue4/scrolls.c Thu Apr 15 20:55:34 2021 -0400 @@ -90,7 +90,7 @@ * otherwise give up */ { - register bool appear = 0; + register int appear = 0; coord mp; /*