shithub: orca

Download patch

ref: 762337b0f6064391186499f82c6088607b7a75d5
parent: 75de43b44c86aac32e041ee84e1f57218d7cf065
author: Nicola Pisanti <nicola@npisanti.com>
date: Thu Jan 24 10:05:06 EST 2019

changes R to max exclusive to match orca-js behavior

--- a/sim.c
+++ b/sim.c
@@ -651,7 +651,7 @@
   }
   Usz key = y * width + x;
   key = hash32_shift_mult((y * width + x) ^ (Tick_number << UINT32_C(16)));
-  Usz val = key % (max + 1 - min) + min;
+  Usz val = key % (max - min) + min;
   POKE(1, 0, glyph_of(val));
 END_OPERATOR