mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
- fixed handling of statistics data.
Blood had the logic wrong and it wasn't saved in savegames.
This commit is contained in:
parent
7765fa45cd
commit
8f41964f56
3 changed files with 3 additions and 1 deletions
|
@ -975,6 +975,7 @@ void ProcessFrame(void)
|
|||
seqKillAll();
|
||||
if (gGameOptions.uGameFlags&2)
|
||||
{
|
||||
STAT_Update(true);
|
||||
if (gGameOptions.nGameType == 0)
|
||||
{
|
||||
if (gGameOptions.uGameFlags&8)
|
||||
|
|
|
@ -104,7 +104,7 @@ void CEndGameMgr::Setup(void)
|
|||
at1 = gInputMode;
|
||||
gInputMode = kInputEndGame;
|
||||
at0 = 1;
|
||||
STAT_Update(true);
|
||||
STAT_Update(false);
|
||||
EndLevel();
|
||||
sndStartSample(268, 128, -1, 1);
|
||||
inputState.keyFlushScans();
|
||||
|
|
|
@ -506,6 +506,7 @@ void SaveStatistics()
|
|||
{
|
||||
sjson_node* levj = sjson_mkobject(ctx);
|
||||
SaveOneLevel(ctx, levj, lev);
|
||||
sjson_append_element(levels, levj);
|
||||
}
|
||||
sjson_append_member(ctx, root, "levels", levels);
|
||||
|
||||
|
|
Loading…
Reference in a new issue