From cc33c6a0ed98a350ba1a953687fc42f2cb7c0dee Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 10 Dec 2019 23:11:02 +0100 Subject: [PATCH] - deactivate statistics for user maps. This really isn't controllable. --- source/common/statistics.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/common/statistics.cpp b/source/common/statistics.cpp index cbe336141..ad9b31020 100644 --- a/source/common/statistics.cpp +++ b/source/common/statistics.cpp @@ -363,7 +363,11 @@ void STAT_StartNewGame(const char *episode, int skill) 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) { + if (*StartEpisode == 0 || *LevelName == 0) return; StoreLevelStats(); // Refresh the current level's results. Printf("%s", GetStatString().GetChars()); } ADD_STAT(statistics) { + if (*StartEpisode == 0 || *LevelName == 0) return; StoreLevelStats(); // Refresh the current level's results. return GetStatString(); }