1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

fixed a freeze bug in Hunting Ground+Chaos+octagonal

This commit is contained in:
Zeno Rogue 2017-11-06 22:19:22 +01:00
parent f185c9e28e
commit 42b1e36cbc

View File

@ -1629,7 +1629,8 @@ void giantLandSwitch(cell *c, int d, cell *from) {
forCellEx(c4, c3) if(c4->mpdist > 7 && !isNeighbor(c4, c))
dogcells.push_back(c4);
if(items[itHunting] < 10 && size(dogcells) >= 2) {
while(true) {
for(int t=0;; t++) {
if(t == 50) { c->item = itNone; break; }
cell *dog1 = dogcells[hrand(size(dogcells))];
cell *dog2 = dogcells[hrand(size(dogcells))];
if(isNeighbor(dog1, dog2)) {