Skip to content

Commit

Permalink
Resolvendo pequeno bug no ranking, onde ao abrir no linux o atoi dava…
Browse files Browse the repository at this point in the history
… erro e o jogo fechava.
  • Loading branch information
igorcardosoy committed Dec 8, 2023
1 parent 737a001 commit 16da98d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified MarioRun_linux64
Binary file not shown.
2 changes: 1 addition & 1 deletion src/lib/ranking.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void ranking_init(Ranking* ranking)
fgets((*ranking)->names[i], 20, (*ranking)->file);

strtok((*ranking)->names[i], "-");
(*ranking)->score_points[i] = atoi(strtok(NULL, " "));
(*ranking)->score_points[i] = atoi(strtok(NULL, ";"));

printf("%s\n", ranking_get(*ranking, i));
}
Expand Down

0 comments on commit 16da98d

Please sign in to comment.