1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +00:00

Hunting Ground no longer hangs in some geometries

This commit is contained in:
Zeno Rogue 2017-11-01 00:53:20 +01:00
parent adfb59e78f
commit a5d4ab9fd6

View File

@ -6195,7 +6195,7 @@ void ambush(cell *c, eItem what) {
vector<cell*> around;
cell *clast = NULL;
cell *ccur = c0;
while(true) {
for(int tries=0; tries<10000; tries++) {
cell *c2 = NULL;
forCellEx(c1, ccur)
if(c1 != clast && cl.listed(c1) && cl.getdist(c1) == d)