From ba3d979f9c6ca72ccefe98d12a11e53bcfb7077c Mon Sep 17 00:00:00 2001 From: Charles Peyrat Date: Fri, 18 Dec 2020 18:10:52 +0100 Subject: [PATCH] Fix syntax error --- squirrelbattle/mapgeneration/randomwalk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/squirrelbattle/mapgeneration/randomwalk.py b/squirrelbattle/mapgeneration/randomwalk.py index 3acb58a..d4669d4 100644 --- a/squirrelbattle/mapgeneration/randomwalk.py +++ b/squirrelbattle/mapgeneration/randomwalk.py @@ -113,11 +113,11 @@ class Generator: result.tiles[y][x] = Tile.WALL for x in range(width): for y in [0, height-1]: - if grid[y][x] = Tile.FLOOR: + if grid[y][x] == Tile.FLOOR: grid[y][x] = Tile.WALL for y in range(height): for y in [0, width-1]: - if grid[y][x] = Tile.FLOOR: + if grid[y][x] == Tile.FLOOR: grid[y][x] = Tile.WALL return result