shithub: schnek

Download patch

ref: 8d14f9e30ad7020025bf3d74f718a0edac40fe2c
parent: 347313456d33fb800c5c986f09525300e7592bc8
author: glenda <glenda@9front.local>
date: Sun Sep 12 18:07:20 EDT 2021

improved randomness

--- a/schnek.c
+++ b/schnek.c
@@ -33,7 +33,7 @@
 	Point newfood;
 	Rectangle r = screen->r;
 
-	newfood.x = r.min.x +  (14)*10;
+	newfood.x = r.min.x +  ntruerand(14)*10;
 	newfood.y = r.min.y + ntruerand(14)*10;
 
 	food = newfood;