本家#474
Fix infinite-loop bug (the values in the WHILE are ok to be 0),
and enhance gehennom.des slightly to use rivers half the time instead
of spills
@@ -1628,7 +1628,7 @@ | ||
1628 | 1628 | dy = (rand() % rough) - (rough / 2); |
1629 | 1629 | mx = ((x1 + x2) / 2) + dx; |
1630 | 1630 | my = ((y1 + y2) / 2) + dy; |
1631 | - } while ((mx >= COLNO-1 || mx <= 0 || my <= 0 || my >= ROWNO-1)); | |
1631 | + } while ((mx > COLNO-1 || mx < 0 || my < 0 || my > ROWNO-1)); | |
1632 | 1632 | } |
1633 | 1633 | |
1634 | 1634 | put_terr_spot(mx,my,ter,lit,thick); |