fix bug
This commit is contained in:
parent
470d00bbe1
commit
849749b6bb
|
@ -74,7 +74,7 @@ impl Level {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for y_r in y..=min(y + 2, LEVEL_WIDTH - 1) {
|
for y_r in y..=min(y + 2, LEVEL_HEIGHT - 1) {
|
||||||
self.discovered[x][y_r] = true;
|
self.discovered[x][y_r] = true;
|
||||||
if self.structure[x][y_r] == LevelElement::Wall {
|
if self.structure[x][y_r] == LevelElement::Wall {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue