From 63ff837c86d57f6b92d7445b5f1aaff0aed43673 Mon Sep 17 00:00:00 2001 From: Jonas Dujava Date: Thu, 26 Sep 2024 18:43:13 +0200 Subject: [PATCH] fix(mapper): properly regenerate invalid map Signed-off-by: Jonas Dujava --- generals/map.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/generals/map.py b/generals/map.py index e7680dd..2f8d7a1 100644 --- a/generals/map.py +++ b/generals/map.py @@ -75,7 +75,13 @@ def generate_map( if Mapper.validate_map(map): return map else: - return Mapper.generate_map() + return Mapper.generate_map( + grid_size=grid_size, + mountain_density=mountain_density, + city_density=city_density, + general_positions=general_positions, + seed=seed, + ) @staticmethod def validate_map(map: str) -> bool: