From 657cb682052b6b8535b81f8c5c0e492857815959 Mon Sep 17 00:00:00 2001 From: Garvita Jain <42664351+garvita-jain@users.noreply.github.com> Date: Sun, 29 Sep 2019 02:03:48 +0530 Subject: [PATCH] Update __main__.py --- flyingsnake/__main__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flyingsnake/__main__.py b/flyingsnake/__main__.py index e60beb6..95178ed 100644 --- a/flyingsnake/__main__.py +++ b/flyingsnake/__main__.py @@ -119,6 +119,7 @@ def flyingsnake(input_file: str, with c.progressbar(world.tiles, length = world.size) as bar: for x in range(world.size.x): for y in range(world.size.y): + tile = bar[x,y] if tile.wall: if draw_paint and tile.wall.paint: color = tuple(colors["Paints"][str(tile.wall.paint)]) @@ -135,6 +136,7 @@ def flyingsnake(input_file: str, with c.progressbar(world.tiles, length = world.size) as bar: for x in range(world.size.x): for y in range(world.size.y): + tile = bar[x,y] if tile.liquid: if tile.liquid.type == li.tiles.LiquidType.WATER: draw.point((x, y), tuple(colors["Globals"]["Water"])) @@ -152,6 +154,7 @@ def flyingsnake(input_file: str, with c.progressbar(world.tiles, length = world.size) as bar: for x in range(world.size.x): for y in range(world.size.y): + tile = bar[x,y] if tile.block: if draw_paint and tile.block.paint: color = tuple(colors["Paints"][str(tile.block.paint)]) @@ -168,6 +171,7 @@ def flyingsnake(input_file: str, with c.progressbar(world.tiles, length = world.size) as bar: for x in range(world.size.x): for y in range(world.size.y): + tile = bar[x,y] if tile.wiring: if tile.wiring.red: draw.point((x, y), tuple(colors["Globals"]["Wire"]))