From 68c28ce1c129ca2eb60415c2149d676c8afea8fa Mon Sep 17 00:00:00 2001 From: Diavolo Date: Mon, 18 Apr 2022 12:38:04 +0200 Subject: [PATCH] Remove this --- src/client/component/bots.cpp | 3 --- src/client/game/game.hpp | 1 - 2 files changed, 4 deletions(-) diff --git a/src/client/component/bots.cpp b/src/client/component/bots.cpp index 9a6ce3e..472eb18 100644 --- a/src/client/component/bots.cpp +++ b/src/client/component/bots.cpp @@ -14,9 +14,6 @@ utils::hook::detour sv_bot_name_random_hook; // Json file is expected to contain a key for the bot's name. Value should be a // string for the clantag void load_bot_data() { - const auto* path = game::Dvar_FindVar("fs_homepath")->current.string; - std::filesystem::current_path(path); - if (!utils::io::file_exists("bots/bots.json")) { game::Com_Printf(game::CON_CHANNEL_SERVER, "bots.json was not found\n"); return; diff --git a/src/client/game/game.hpp b/src/client/game/game.hpp index cdf009e..d690d06 100644 --- a/src/client/game/game.hpp +++ b/src/client/game/game.hpp @@ -19,7 +19,6 @@ public: T* get() const { if (environment::t5mp()) { - return t5mp_; }