This commit is contained in:
Joachim Lusiardi 2023-11-22 06:59:05 +01:00
parent 470d00bbe1
commit 849749b6bb
1 changed files with 1 additions and 1 deletions

View File

@ -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;