From 5419f79bff12119a63db8a2f20f1772154213fd8 Mon Sep 17 00:00:00 2001 From: Michael Hayes Date: Sat, 5 Oct 2013 09:59:34 +1300 Subject: [PATCH] Fix direction for reversing --- utils/boing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/boing.c b/utils/boing.c index 1ecd1fe..b40be90 100644 --- a/utils/boing.c +++ b/utils/boing.c @@ -43,7 +43,7 @@ boing_state_t boing_update (boing_state_t state) boing_state_t boing_reverse (boing_state_t state) { boing_dir_t newdir[] = {DIR_S, DIR_SW, DIR_W, DIR_NW, - DIR_N, DIR_NE, DIR_W, DIR_SE}; + DIR_N, DIR_NE, DIR_E, DIR_SE}; state.dir = newdir[state.dir]; return state;