1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-16 19:18:05 +00:00

clearing:: fixed some bugs when reached too far into the center

This commit is contained in:
Zeno Rogue
2020-03-01 02:35:19 +01:00
parent 62734bbfc5
commit 70d7fde8d4
4 changed files with 28 additions and 11 deletions

View File

@@ -914,7 +914,7 @@ EX namespace clearing {
// printf("R %4d C %4d\n", celldistAlt(bd.root), celldistAlt(c));
if(celldistAlt(c) > celldistAlt(bd.root)) {
stepcount++;
if(stepcount > 1000) {
if(stepcount > 100000000) {
printf("buggy #1\n");
return;
}
@@ -933,7 +933,7 @@ EX namespace clearing {
}
else {
bd.dist--;
if(bd.dist < -1000) {
if(bd.dist < -100000000) {
for(int i=0; i<steps; i++)
onpath[i]->item = itBuggy;
for(int i=0; i<(int) rpath.size(); i++)