The count of mines was not decremented, so a player who entered the loop could continue to drop until (d_rand() < rthresh) became false. Halving rthresh on each pass guaranteed that it would stop, but with the right string of random numbers, the player could drop more mines than he had. Remove the ==1 qualifier, so that mines can spawn whenever one will be lost to rounding. |
||
---|---|---|
common | ||
contrib | ||
d1x-rebirth | ||
d2x-rebirth | ||
Documentation | ||
similar | ||
.gitignore | ||
COPYING.txt | ||
GPL-3.txt | ||
INSTALL.markdown | ||
SConstruct |