diff options
author | rubidium42 <rubidium@openttd.org> | 2021-06-12 09:10:17 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-06-13 12:45:45 +0200 |
commit | 55a11710a6c0f7942f3947711f2050c34782c39d (patch) | |
tree | 491b3009324e623236977614e91371a0ea4abac7 /src/highscore.cpp | |
parent | a99ac62c1ab816ee48cac85fdf834f9fdc599cb1 (diff) | |
download | openttd-55a11710a6c0f7942f3947711f2050c34782c39d.tar.xz |
Codechange: convert printf DEBUG statements to fmt Debug statements
Diffstat (limited to 'src/highscore.cpp')
-rw-r--r-- | src/highscore.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/highscore.cpp b/src/highscore.cpp index d40f2419d..e371b4054 100644 --- a/src/highscore.cpp +++ b/src/highscore.cpp @@ -138,7 +138,7 @@ void SaveToHighScore() fwrite(hs->company, length, 1, fp) > 1 || // Yes... could be 0 bytes too fwrite(&hs->score, sizeof(hs->score), 1, fp) != 1 || fwrite(" ", 2, 1, fp) != 1) { // XXX - placeholder for hs->title, not saved anymore; compatibility - DEBUG(misc, 1, "Could not save highscore."); + Debug(misc, 1, "Could not save highscore."); i = SP_SAVED_HIGHSCORE_END; break; } @@ -166,7 +166,7 @@ void LoadFromHighScore() fread(hs->company, std::min<int>(lengthof(hs->company), length), 1, fp) > 1 || // Yes... could be 0 bytes too fread(&hs->score, sizeof(hs->score), 1, fp) != 1 || fseek(fp, 2, SEEK_CUR) == -1) { // XXX - placeholder for hs->title, not saved anymore; compatibility - DEBUG(misc, 1, "Highscore corrupted"); + Debug(misc, 1, "Highscore corrupted"); i = SP_SAVED_HIGHSCORE_END; break; } |