diff rogue4/passages.c @ 305:3900f3cfe07d

Rogue V4: fix arithmetic operations on boolean variables. Monsters created by scrolls should now have their placement randomized correctly again.
author John "Elwin" Edwards
date Thu, 15 Apr 2021 20:55:34 -0400
parents 0250220d8cdd
children
line wrap: on
line diff
--- 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);
 	}
 }