From 2b0606110cf478e2aefe1dc094cd1e932497e0d2 Mon Sep 17 00:00:00 2001 From: merspieler Date: Wed, 8 May 2019 08:04:52 +0000 Subject: [PATCH] Fixed tile progress Signed-off-by: merspieler --- scripts/worldbuild.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/worldbuild.py b/scripts/worldbuild.py index 80ec195..1704c79 100755 --- a/scripts/worldbuild.py +++ b/scripts/worldbuild.py @@ -63,11 +63,10 @@ while i < argc: eM = (int(e) - em) / 10 nM = (int(n) - nm) / 10 - #FIXME wrong in some edge cases + cs = n - s if nm == 0: - wm += 1 - - tile = wm * 10 + nm + nm = 10 + tile = ((10 - wm) % 10) * 10 + cs * cs * (nm / cs) rows = 0