Skip to content

Commit

Permalink
stats: Actually save stats, so players aren't stuck with the pacifier…
Browse files Browse the repository at this point in the history
… forever.

Stats were only saved in multiGameShutdown(), which apparently never gets called if closing the game.
  • Loading branch information
Cyp committed Jan 5, 2013
1 parent 60b33a1 commit 3bada3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/wrappers.cpp
Expand Up @@ -408,6 +408,11 @@ bool displayGameOver(bool bDidit)
updateMultiStatsLoses();
}
}
if (bMultiPlayer)
{
PLAYERSTATS st = getMultiStats(selectedPlayer);
saveMultiStats(getPlayerName(selectedPlayer), getPlayerName(selectedPlayer), &st);
}

//clear out any mission widgets - timers etc that may be on the screen
clearMissionWidgets();
Expand Down

0 comments on commit 3bada3c

Please sign in to comment.