From 0e576d38521dfb9697183e1d3cbbe3e90a4937da Mon Sep 17 00:00:00 2001 From: FutureRave Date: Mon, 21 Nov 2022 18:37:25 +0000 Subject: [PATCH] fix(game): update symbols --- src/client/game/game.cpp | 7 ------- src/client/game/game.hpp | 7 ------- src/client/game/symbols.hpp | 10 +++++++++- 3 files changed, 9 insertions(+), 15 deletions(-) diff --git a/src/client/game/game.cpp b/src/client/game/game.cpp index 2412e404..7250a2dd 100644 --- a/src/client/game/game.cpp +++ b/src/client/game/game.cpp @@ -19,11 +19,4 @@ namespace game }(); return base; } - - CmdArgs* cmd_args_t::operator->() const - { - return Sys_GetTLS()->cmdArgs; - } - - cmd_args_t cmd_args; } diff --git a/src/client/game/game.hpp b/src/client/game/game.hpp index 7c49978c..4410d479 100644 --- a/src/client/game/game.hpp +++ b/src/client/game/game.hpp @@ -50,13 +50,6 @@ namespace game private: size_t address_; }; - - struct cmd_args_t - { - CmdArgs* operator->() const; - }; - - extern cmd_args_t cmd_args; } inline size_t operator"" _g(const size_t val) diff --git a/src/client/game/symbols.hpp b/src/client/game/symbols.hpp index f1b445ce..acd5deb6 100644 --- a/src/client/game/symbols.hpp +++ b/src/client/game/symbols.hpp @@ -84,6 +84,14 @@ namespace game // Global game definitions constexpr auto CMD_MAX_NESTING = 8; - // Reimplementations + struct cmd_args_t + { + CmdArgs* operator->() const + { + return Sys_GetTLS()->cmdArgs; + } + }; + + // Re-implementations eModes Com_SessionMode_GetMode(); }