void SaveScore(int nr)
{
int i;
+ int permissions = (program.global_scores ? PERMS_PUBLIC : PERMS_PRIVATE);
char *filename = getScoreFilename(nr);
FILE *file;
fclose(file);
- SetFilePermissions(filename, PERMS_PUBLIC);
+ SetFilePermissions(filename, permissions);
}