From 83d8e3c0d8596eaf929984d12ecdd97ee6277eb1 Mon Sep 17 00:00:00 2001 From: Christian Kroll Date: Fri, 16 Dec 2011 19:40:25 +0000 Subject: [PATCH] crime scene, do not cross --- animations/blackhole.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/animations/blackhole.c b/animations/blackhole.c index aa293b4..34c2ad2 100644 --- a/animations/blackhole.c +++ b/animations/blackhole.c @@ -29,14 +29,14 @@ static signed char sin_i(unsigned char angle) { if (angle < 16) { index = angle; } else if (angle < 32) { - index = 32 - angle; + index = 31 - angle; } else if (angle < 48) { index = angle - 32; } else { - index = 64 - angle; + index = 63 - angle; } - return (unsigned char)(PGM(sinus_table[index])) * (angle < 32 ? 1 : -1); + return (signed char)(PGM(sinus_table[index])) * (angle < 32 ? 1 : -1); }