Move the "time" string in saved game comment into the LANGUAGE lump.

# Conflicts:
#	src/g_game.cpp
This commit is contained in:
nashmuhandes 2019-01-21 13:17:11 +08:00 committed by Christoph Oelckers
parent 0dbd591812
commit d911fa99a1
2 changed files with 9 additions and 6 deletions

View file

@ -2084,9 +2084,9 @@ static void PutSaveComment (FSerializer &arc)
comment.Format("%s - %s\n", level.MapName.GetChars(), level.LevelName.GetChars());
// Append elapsed time
const char *const time = GStrings("SAVECOMMENT_TIME");
levelTime = level.time / TICRATE;
comment.AppendFormat("time: %02d:%02d:%02d",
levelTime/3600, (levelTime%3600)/60, levelTime%60);
comment.AppendFormat("%s: %02d:%02d:%02d", time, levelTime/3600, (levelTime%3600)/60, levelTime%60);
// Write out the comment
arc.AddString("Comment", comment);

View file

@ -856,6 +856,9 @@ STARTUP3 = "";
STARTUP4 = "";
STARTUP5 = "";
// Save file comment
SAVECOMMENT_TIME = "time";
// Scoreboard text
SCORE_ITEMS = "ITEMS";
SCORE_BONUS = "BONUS";