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)
{
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)
{
}
/* On level completed */
- if (lg->state == GAME_GOAL)
+ if (lg->status == GAME_GOAL)
{
/* Update level scores */
dirty = level_score_update(lg, player);
}
/* On goal reached */
- if (lg->state == GAME_GOAL)
+ if (lg->status == GAME_GOAL)
{
/* Identify the following level */
nl = next_level(ln);