aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate_map_img.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/generate_map_img.py b/scripts/generate_map_img.py
index 0e374a51..0605cbd8 100755
--- a/scripts/generate_map_img.py
+++ b/scripts/generate_map_img.py
@@ -29,7 +29,7 @@ def is_right_edge(tiles: Tiles, x: int, y: int) -> bool:
return len(tiles[y]) - 1 == x
-def is_left_edge(tiles: Tiles, x: int) -> bool:
+def is_left_edge(x: int) -> bool:
"""Return true if (x,y) is on the left edge of the map"""
return x == 0
@@ -210,7 +210,7 @@ def find_tower_tile(tiles: Sequence[Sequence[str]], x: int, y: int):
if selector and 'r' not in selector and is_right_edge(tiles, x, y):
selector += 'r'
- if selector and 'l' not in selector and is_left_edge(tiles, x):
+ if selector and 'l' not in selector and is_left_edge(x):
selector += 'l'
tile_name = 'tower'