mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-17 14:44:08 +00:00
Hunting Ground no longer hangs in some geometries
This commit is contained in:
parent
adfb59e78f
commit
a5d4ab9fd6
2
game.cpp
2
game.cpp
@ -6195,7 +6195,7 @@ void ambush(cell *c, eItem what) {
|
|||||||
vector<cell*> around;
|
vector<cell*> around;
|
||||||
cell *clast = NULL;
|
cell *clast = NULL;
|
||||||
cell *ccur = c0;
|
cell *ccur = c0;
|
||||||
while(true) {
|
for(int tries=0; tries<10000; tries++) {
|
||||||
cell *c2 = NULL;
|
cell *c2 = NULL;
|
||||||
forCellEx(c1, ccur)
|
forCellEx(c1, ccur)
|
||||||
if(c1 != clast && cl.listed(c1) && cl.getdist(c1) == d)
|
if(c1 != clast && cl.listed(c1) && cl.getdist(c1) == d)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user