ref: c0656d002bdebacf33f9615375f3a659d67b616b
parent: 98a4a4f18c60bf8a4985431aac8d043ebe827dc6
author: cancel <cancel@cancel.fm>
date: Fri Nov 30 11:34:06 EST 2018
Cleanup
--- a/sim.c
+++ b/sim.c
@@ -610,12 +610,12 @@
if (a == b) {
POKE(1, 0, GLYPH(a));
return;
- } else if (b > a) {
+ } else if (a < b) {
min = a;
max = b;
} else {
- max = a;
min = b;
+ max = a;
}
Usz val = (y * 5 + x * 3) * Tick_number % (max - min) + min;
POKE(1, 0, GLYPH(val));