From b23194ea46c11ffaa1c62f34020e3bd00a76e96e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20N=C3=B6llemeyer?= Date: Sun, 18 Aug 2024 12:40:34 +0200 Subject: [PATCH] tiny render optimization --- game/screens/game_screens.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/game/screens/game_screens.py b/game/screens/game_screens.py index ddea154..5054a4e 100644 --- a/game/screens/game_screens.py +++ b/game/screens/game_screens.py @@ -106,8 +106,7 @@ class MainScreen(Screen): ch = 0 if not val: ch = VERTICAL_WALL_CHAR - in_doors = Position(x,y+1) in doors - if map.walkable[y+1,x] and not in_doors: + if map.walkable[y+1,x] and not Position(x,y+1) in doors: ch = WALL_CHAR graphic = Graphic(ch) draw(pos, graphic)