From c5e974a15d6e677498e6ff5b233a14788cb63478 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Fri, 1 Jul 2011 15:05:38 +0200 Subject: [PATCH] readabler (?) --- star.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/star.c b/star.c index f5f1cc3..1eaa758 100644 --- a/star.c +++ b/star.c @@ -107,7 +107,8 @@ void move( struct state *s, direction where ) ( get_cell( s, tmpx + dx, tmpy + dy ) == VOID ) /* or, in case the ball is moving, target cell can be a gift (which we'll eat) */ || ( s->moving == BALL && ( get_cell( s, tmpx + dx, tmpy + dy ) == GIFT ) ) - ) { + ) + { tmpx += dx; tmpy += dy; @@ -115,7 +116,7 @@ void move( struct state *s, direction where ) set_cell( s, tmpx, tmpy, VOID ); } } - + /* Moving to arrival coordinates */ set_cell( s, item_coord[ 0 ], item_coord[ 1 ], VOID ); set_cell( s, tmpx, tmpy, s->moving );