From: Eric S. Raymond Date: Sun, 25 Aug 2013 02:17:57 +0000 (-0400) Subject: Another readability tweak. X-Git-Tag: 1.11~22 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=6ff2e23150385ef850b3123c2bae4f906af3026b;p=vms-empire.git Another readability tweak. --- 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 */