Another readability tweak.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 25 Aug 2013 02:17:57 +0000 (22:17 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 25 Aug 2013 02:17:57 +0000 (22:17 -0400)
usermove.c

index aae25e1..a690b66 100644 (file)
@@ -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 */