Codechange: convert printf DEBUG statements to fmt Debug statements
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user