Mercurial > hg > early-roguelike
comparison rogue4/scrolls.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 | 1b73a8641b37 |
| children |
comparison
equal
deleted
inserted
replaced
| 304:e52a8a7ad4c5 | 305:3900f3cfe07d |
|---|---|
| 88 * Create a monster | 88 * Create a monster |
| 89 * First look in a circle around him, next try his room | 89 * First look in a circle around him, next try his room |
| 90 * otherwise give up | 90 * otherwise give up |
| 91 */ | 91 */ |
| 92 { | 92 { |
| 93 register bool appear = 0; | 93 register int appear = 0; |
| 94 coord mp; | 94 coord mp; |
| 95 | 95 |
| 96 /* | 96 /* |
| 97 * Search for an open place | 97 * Search for an open place |
| 98 */ | 98 */ |
