mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-22 12:11:17 +00:00
fix handling of super secrets in statistics code.
This commit is contained in:
parent
be9ddb0007
commit
4135e460e2
1 changed files with 4 additions and 2 deletions
|
@ -409,6 +409,7 @@ static void StoreLevelStats()
|
|||
LevelData[i].killcount = info.kills;
|
||||
LevelData[i].totalsecrets = info.maxsecrets;
|
||||
LevelData[i].secretcount = info.secrets;
|
||||
LevelData[i].supersecrets = info.supersecrets;
|
||||
LevelData[i].leveltime = info.time / 120;
|
||||
}
|
||||
|
||||
|
@ -539,8 +540,9 @@ FString GetStatString()
|
|||
for(unsigned i = 0; i < LevelData.Size(); i++)
|
||||
{
|
||||
OneLevel *l = &LevelData[i];
|
||||
compose.AppendFormat("Level %s - Kills: %d/%d - Secrets: %d/%d - Time: %d:%02d\n",
|
||||
l->Levelname.GetChars(), l->killcount, l->totalkills, l->secretcount, l->totalsecrets,
|
||||
FString supersecret =l->supersecrets ? FStringf(":%d", l->supersecrets) : FString();
|
||||
compose.AppendFormat("Level %s - Kills: %d/%d - Secrets: %d/%d%s - Time: %d:%02d\n",
|
||||
l->Levelname.GetChars(), l->killcount, l->totalkills, l->secretcount, l->totalsecrets, supersecret.GetChars(),
|
||||
l->leveltime/(60), (l->leveltime)%60);
|
||||
}
|
||||
return compose;
|
||||
|
|
Loading…
Reference in a new issue