tiny render optimization
This commit is contained in:
parent
5be7a61e56
commit
b23194ea46
1 changed files with 1 additions and 2 deletions
|
|
@ -106,8 +106,7 @@ class MainScreen(Screen):
|
||||||
ch = 0
|
ch = 0
|
||||||
if not val:
|
if not val:
|
||||||
ch = VERTICAL_WALL_CHAR
|
ch = VERTICAL_WALL_CHAR
|
||||||
in_doors = Position(x,y+1) in doors
|
if map.walkable[y+1,x] and not Position(x,y+1) in doors:
|
||||||
if map.walkable[y+1,x] and not in_doors:
|
|
||||||
ch = WALL_CHAR
|
ch = WALL_CHAR
|
||||||
graphic = Graphic(ch)
|
graphic = Graphic(ch)
|
||||||
draw(pos, graphic)
|
draw(pos, graphic)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue