Reverted these modifications..

This commit is contained in:
Dv4L 2020-08-08 23:13:46 +02:00
parent c9a75a71ba
commit 9d8fe54681
2 changed files with 1 additions and 4 deletions

View File

@ -326,9 +326,6 @@ namespace Components
// Intermission time dvar // Intermission time dvar
Game::Dvar_RegisterFloat("scr_intermissionTime", 10, 0, 120, Game::DVAR_FLAG_REPLICATED | Game::DVAR_FLAG_SAVED | Game::DVAR_FLAG_DEDISAVED, "Time in seconds before match server loads the next map"); Game::Dvar_RegisterFloat("scr_intermissionTime", 10, 0, 120, Game::DVAR_FLAG_REPLICATED | Game::DVAR_FLAG_SAVED | Game::DVAR_FLAG_DEDISAVED, "Time in seconds before match server loads the next map");
//Dvar for enabling mod-specific stats
Game::Dvar_RegisterBool("scr_modStats", false, Game::DVAR_FLAG_REPLICATED, "Saves stats separately for the loaded mod");
// Disallow invalid player names // Disallow invalid player names
Utils::Hook(0x401983, QuickPatch::InvalidNameStub, HOOK_JUMP).install()->quick(); Utils::Hook(0x401983, QuickPatch::InvalidNameStub, HOOK_JUMP).install()->quick();

View File

@ -67,7 +67,7 @@ namespace Components
{ {
const auto fs_game = Game::Dvar_FindVar("fs_game"); const auto fs_game = Game::Dvar_FindVar("fs_game");
if (Dvar::Var("scr_modStats").get<bool>() && fs_game && fs_game->current.string && strlen(fs_game->current.string) && !strncmp(fs_game->current.string, "mods/", 5)) if (fs_game && fs_game->current.string && strlen(fs_game->current.string) && !strncmp(fs_game->current.string, "mods/", 5))
{ {
folder = fs_game->current.string; folder = fs_game->current.string;
} }