aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-06-16 01:01:10 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-06-16 01:01:10 +0200
commitefa2c77be7f296ca3c2b74f91a2ec620341dc357 (patch)
tree3739d99f603594cea27972ed4d2ba2a495f8dd60
parent96df08b6133eab68a4e9b4eb85e5c15b4c7a7532 (diff)
downloadNorthstarLauncher-grapple-fixes.tar.gz
NorthstarLauncher-grapple-fixes.zip
Move #define to top of filegrapple-fixes
-rw-r--r--NorthstarDedicatedTest/ExploitFixes.cpp8
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);