Minor clean-up.
[neverball] / ball / set.c
index 3ca5326..89c558e 100644 (file)
@@ -416,7 +416,6 @@ static int set_score_update(struct level_game *lg, const char *player)
     return (lg->score_rank < 3 || lg->times_rank < 3);
 }
 
-
 /* Update the player name for set and level high-score. */
 void score_change_name(struct level_game *lg, const char *player)
 {
@@ -447,8 +446,7 @@ static struct level *next_normal_level(int i)
     return NULL;
 }
 
-/* Inform the set that a level is finished.  Update next level and score
- * rank fields. */
+/*---------------------------------------------------------------------------*/
 
 void set_finish_level(struct level_game *lg, const char *player)
 {
@@ -469,7 +467,7 @@ void set_finish_level(struct level_game *lg, const char *player)
     }
 
     /* On level completed */
-    if (lg->state == GAME_GOAL)
+    if (lg->status == GAME_GOAL)
     {
         /* Update level scores */
         dirty = level_score_update(lg, player);
@@ -488,7 +486,7 @@ void set_finish_level(struct level_game *lg, const char *player)
     }
 
     /* On goal reached */
-    if (lg->state == GAME_GOAL)
+    if (lg->status == GAME_GOAL)
     {
         /* Identify the following level */
         nl = next_level(ln);