Mercurial > hg > early-roguelike
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 304:e52a8a7ad4c5 | 305:3900f3cfe07d |
|---|---|
| 327 for (rp = passages; rp < &passages[MAXPASS]; rp++) | 327 for (rp = passages; rp < &passages[MAXPASS]; rp++) |
| 328 rp->r_nexits = 0; | 328 rp->r_nexits = 0; |
| 329 for (rp = rooms; rp < &rooms[MAXROOMS]; rp++) | 329 for (rp = rooms; rp < &rooms[MAXROOMS]; rp++) |
| 330 for (i = 0; i < rp->r_nexits; i++) | 330 for (i = 0; i < rp->r_nexits; i++) |
| 331 { | 331 { |
| 332 newpnum++; | 332 newpnum = TRUE; |
| 333 numpass(rp->r_exit[i].y, rp->r_exit[i].x); | 333 numpass(rp->r_exit[i].y, rp->r_exit[i].x); |
| 334 } | 334 } |
| 335 } | 335 } |
| 336 | 336 |
| 337 /* | 337 /* |
