• R/O
  • SSH
  • HTTPS

jsporkhack: Commit


Commit MetaInfo

Revision34 (tree)
Time2009-09-23 02:40:13
Authordplusplus

Log Message

本家#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

Change Summary

Incremental Difference

--- JSporkHack/trunk/src/sp_lev.c (revision 33)
+++ JSporkHack/trunk/src/sp_lev.c (revision 34)
@@ -1628,7 +1628,7 @@
16281628 dy = (rand() % rough) - (rough / 2);
16291629 mx = ((x1 + x2) / 2) + dx;
16301630 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));
16321632 }
16331633
16341634 put_terr_spot(mx,my,ter,lit,thick);
Show on old repository browser