From 849749b6bb3da56ee7f400ec4e3ef57bf3c6dec5 Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Wed, 22 Nov 2023 06:59:05 +0100 Subject: [PATCH] fix bug --- src/level.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/level.rs b/src/level.rs index 1a2b097..1775b81 100644 --- a/src/level.rs +++ b/src/level.rs @@ -74,7 +74,7 @@ impl Level { 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; if self.structure[x][y_r] == LevelElement::Wall { break;