diff --git a/src/client/game/game.cpp b/src/client/game/game.cpp index 3f1c008..5901396 100644 --- a/src/client/game/game.cpp +++ b/src/client/game/game.cpp @@ -10,20 +10,19 @@ void __declspec(naked) Dvar_SetVariant(dvar_t* /*dvar*/, DvarValue /*value*/, static DWORD func = 0x649170; __asm { - pushad + pushad - mov eax, [esp + 0x20 + 0x4] // dvar - push [esp + 0x20 + 0x18] // source + mov eax, [esp + 0x20 + 0x4] // dvar + push [esp + 0x20 + 0x18] // source push [esp + 0x20 + 0x18] // value push [esp + 0x20 + 0x18] // value push [esp + 0x20 + 0x18] // value push [esp + 0x20 + 0x18] // value - call func - add esp, 0x14 + call func + add esp, 0x14 - popad - - ret + popad + ret } } } // namespace game diff --git a/src/client/game/game.hpp b/src/client/game/game.hpp index 50a3366..e5969f9 100644 --- a/src/client/game/game.hpp +++ b/src/client/game/game.hpp @@ -15,8 +15,8 @@ private: T* mp_; }; -ScreenPlacement* ScrPlace_GetUnsafeFullPlacement(); -void Dvar_SetVariant(dvar_t* dvar, DvarValue value, DvarSetSource source); +extern ScreenPlacement* ScrPlace_GetUnsafeFullPlacement(); +extern void Dvar_SetVariant(dvar_t* dvar, DvarValue value, DvarSetSource source); } // namespace game #include "symbols.hpp"