Rogue V4: fix arithmetic operations on boolean variables.

Monsters created by scrolls should now have their placement randomized
correctly again.
This commit is contained in:
John "Elwin" Edwards 2021-04-15 20:55:34 -04:00
parent 6c3cd116ff
commit 844379d679
3 changed files with 3 additions and 3 deletions

View file

@ -329,7 +329,7 @@ passnum(void)
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);
}
}

View file

@ -246,7 +246,7 @@ turn_see(bool turn_off)
if (!can_see)
{
standend();
add_new++;
add_new = TRUE;
}
}
}

View file

@ -90,7 +90,7 @@ read_scroll(void)
* otherwise give up
*/
{
register bool appear = 0;
register int appear = 0;
coord mp;
/*