diff --git a/scripts/worldbuild.py b/scripts/worldbuild.py
index 956c891..f6ea5e9 100755
--- a/scripts/worldbuild.py
+++ b/scripts/worldbuild.py
@@ -72,7 +72,7 @@ while i < argc:
 							cs = n - s
 							if nm == 0:
 								nm = 10
-							tile = ((10 - wm) % 10) * 10 + cs * cs * (nm / cs)
+							tile = (wm % 10) * 10 + cs * cs * (nm / cs)
 
 							
 							rows = 0