From 6ff2e23150385ef850b3123c2bae4f906af3026b Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 24 Aug 2013 22:17:57 -0400 Subject: [PATCH] Another readability tweak. --- usermove.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/usermove.c b/usermove.c index aae25e1..a690b66 100644 --- a/usermove.c +++ b/usermove.c @@ -77,14 +77,14 @@ user_move(void) { sector_change (); /* allow screen to be redrawn */ for (j = 0; j < NUM_OBJECTS; j++) /* loop through obj lists */ - for (obj = user_obj[move_order[j]]; obj != NULL; - obj = next_obj) { /* loop through objs in list */ - next_obj = obj->piece_link.next; + for (obj = user_obj[move_order[j]]; obj != NULL; + obj = next_obj) { /* loop through objs in list */ + next_obj = obj->piece_link.next; - if (!obj->moved) /* object not moved yet? */ - if (loc_sector (obj->loc) == sec) /* object in sector? */ - piece_move (obj); /* yup; move the object */ - } + if (!obj->moved) /* object not moved yet? */ + if (loc_sector (obj->loc) == sec) /* object in sector? */ + piece_move (obj); /* yup; move the object */ + } if (cur_sector () == sec) { /* is sector displayed? */ print_sector_u (sec); /* make screen up-to-date */ redisplay (); /* show it to the user */ -- 2.43.0