diff options
Diffstat (limited to 'NorthstarDedicatedTest/ExploitFixes.cpp')
-rw-r--r-- | NorthstarDedicatedTest/ExploitFixes.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/NorthstarDedicatedTest/ExploitFixes.cpp b/NorthstarDedicatedTest/ExploitFixes.cpp index 79287d4d..3bd913d1 100644 --- a/NorthstarDedicatedTest/ExploitFixes.cpp +++ b/NorthstarDedicatedTest/ExploitFixes.cpp @@ -5,6 +5,10 @@ #include "NSMem.h" #include "cvar.h" +#define FORCE_3_VALID(name) \ + if (name.IsInvalid()) \ + name = {0, 0, 0} + typedef char(__fastcall* function_containing_emit_t)(uint64_t a1, uint64_t a2); function_containing_emit_t function_containing_emit; ConVar* sv_cheats; @@ -260,10 +264,6 @@ KHOOK(ReadUsercmd, ("server.dll", "4C 89 44 24 ? 53 55 56 57"), void, __fastcall std::string BLOCK_PREFIX = "ReadUsercmd (command_number delta: " + std::to_string(cmd->command_number - fromCmd->command_number) + "): "; -#define FORCE_3_VALID(name) \ - if (name.IsInvalid()) \ - name = {0, 0, 0} - FORCE_3_VALID(cmd->localViewAngles); FORCE_3_VALID(cmd->cameraAngles); FORCE_3_VALID(cmd->attackangles); |