Fixed tile progress

Signed-off-by: merspieler <merspieler@airmail.cc>
This commit is contained in:
merspieler 2019-05-08 08:04:52 +00:00
parent 8517de2d65
commit 2b0606110c

View file

@ -63,11 +63,10 @@ while i < argc:
eM = (int(e) - em) / 10 eM = (int(e) - em) / 10
nM = (int(n) - nm) / 10 nM = (int(n) - nm) / 10
#FIXME wrong in some edge cases cs = n - s
if nm == 0: if nm == 0:
wm += 1 nm = 10
tile = ((10 - wm) % 10) * 10 + cs * cs * (nm / cs)
tile = wm * 10 + nm
rows = 0 rows = 0