shithub: sce

Download patch

ref: b803bdeacb20ea454f7511c5bcd8e9bf0a49a564
parent: a3bc56d5bd49d953282fa352bfffefe08ce1368e
author: qwx <qwx@sciops.net>
date: Mon Aug 10 17:37:21 EDT 2020

utils/genmap: fix stupid

diff -u a/utils/genmap b/utils/genmap
--- a/utils/genmap
+++ b/utils/genmap
@@ -9,7 +9,7 @@
 	print "tileset," t
 	while(y-- > 0){
 		printf "map"
-		for(i=1; i<x; i++){
+		for(i=1; i<=x; i++){
 			v = 1 + rand() * 1000000 % e
 			printf ",%s", int(v)
 		}
--- a/utils/genmap
+++ b/utils/genmap
@@ -9,7 +9,7 @@
 	print "tileset," t
 	while(y-- > 0){
 		printf "map"
-		for(i=1; i<x; i++){
+		for(i=1; i<=x; i++){
 			v = 1 + rand() * 1000000 % e
 			printf ",%s", int(v)
 		}