diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2022-01-04 14:32:38 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2022-01-04 14:33:24 +0100 |
| commit | 808bb0a7a0bcd639a81f00debf9ff78045ffe562 (patch) | |
| tree | a6301198517f95b00a3d0b0fa8c8b80c538fe5b7 /scripts | |
| parent | 241d93478dd99a35e89815a8304d97b1bb94cc52 (diff) | |
| download | muhqs-game-808bb0a7a0bcd639a81f00debf9ff78045ffe562.tar.gz muhqs-game-808bb0a7a0bcd639a81f00debf9ff78045ffe562.zip | |
remove unused argument in generate_map_img
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/generate_map_img.py | 4 |
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' |
