tiny render optimization

This commit is contained in:
Lukas Nöllemeyer 2024-08-18 12:40:34 +02:00
parent 5be7a61e56
commit b23194ea46

View file

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