From c0656d002bdebacf33f9615375f3a659d67b616b Mon Sep 17 00:00:00 2001 From: cancel <cancel@cancel.fm> Date: Fri, 30 Nov 2018 16:34:06 +0900 Subject: [PATCH] Cleanup --- sim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sim.c b/sim.c index 9309d2e..225b58c 100644 --- a/sim.c +++ b/sim.c @@ -610,12 +610,12 @@ BEGIN_DUAL_PHASE_1(random) 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));