mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-27 09:20:51 +00:00
- deactivate statistics for user maps.
This really isn't controllable.
This commit is contained in:
parent
ebb43f9129
commit
cc33c6a0ed
1 changed files with 7 additions and 1 deletions
|
@ -363,7 +363,11 @@ void STAT_StartNewGame(const char *episode, int skill)
|
||||||
|
|
||||||
void STAT_NewLevel(const char* mapname)
|
void STAT_NewLevel(const char* mapname)
|
||||||
{
|
{
|
||||||
LevelName = mapname;
|
if (!strncmp(mapname, "file://", 7) == 0)
|
||||||
|
{
|
||||||
|
STAT_StartNewGame("", 0); // reset and deactivate for user maps
|
||||||
|
}
|
||||||
|
else LevelName = mapname;
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
@ -590,12 +594,14 @@ FString GetStatString()
|
||||||
|
|
||||||
CCMD(printstats)
|
CCMD(printstats)
|
||||||
{
|
{
|
||||||
|
if (*StartEpisode == 0 || *LevelName == 0) return;
|
||||||
StoreLevelStats(); // Refresh the current level's results.
|
StoreLevelStats(); // Refresh the current level's results.
|
||||||
Printf("%s", GetStatString().GetChars());
|
Printf("%s", GetStatString().GetChars());
|
||||||
}
|
}
|
||||||
|
|
||||||
ADD_STAT(statistics)
|
ADD_STAT(statistics)
|
||||||
{
|
{
|
||||||
|
if (*StartEpisode == 0 || *LevelName == 0) return;
|
||||||
StoreLevelStats(); // Refresh the current level's results.
|
StoreLevelStats(); // Refresh the current level's results.
|
||||||
return GetStatString();
|
return GetStatString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue