Skip to content

Commit

Permalink
Rm print error if no high scores found on init
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong committed Nov 1, 2018
1 parent 9a02e15 commit 9cc480b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions high_score.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void HighScoresInit(void)
FILE *f = fopen(buf, "r");
if (f == NULL)
{
printf("Error: cannot open config file %s\n", buf);
// No high score file found
return;
}
while (fgets(buf, sizeof buf, f))
Expand Down Expand Up @@ -185,4 +185,4 @@ void HighScoreDisplayDraw(HighScoreDisplay *h)
c.b = TEXT_BLUE_LOW + (Uint8)((TEXT_BLUE_HIGH - TEXT_BLUE_LOW) * scalar);
c.r = c.g = c.b / 2;
TextRenderCentered(hsFont, buf, (int)h->y, c);
}
}

0 comments on commit 9cc480b

Please sign in to comment.