diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-05-12 15:25:08 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-05-12 15:25:08 +0100 |
commit | a526ad915694ce9881b7ff093cdab9587d088217 (patch) | |
tree | 4deacbfeedd0a8d937ab4747c2e2629e994ce7ec /NorthstarDedicatedTest/miscserverscript.cpp | |
parent | 6768e46b200c63d758bd6e92bd500f3c754c3245 (diff) | |
download | NorthstarLauncher-a526ad915694ce9881b7ff093cdab9587d088217.tar.gz NorthstarLauncher-a526ad915694ce9881b7ff093cdab9587d088217.zip |
separate gameutils into multiple r2 headers
Diffstat (limited to 'NorthstarDedicatedTest/miscserverscript.cpp')
-rw-r--r-- | NorthstarDedicatedTest/miscserverscript.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/NorthstarDedicatedTest/miscserverscript.cpp b/NorthstarDedicatedTest/miscserverscript.cpp index b8ab951a..26c18d81 100644 --- a/NorthstarDedicatedTest/miscserverscript.cpp +++ b/NorthstarDedicatedTest/miscserverscript.cpp @@ -1,10 +1,9 @@ #include "pch.h" #include "miscserverscript.h" -#include "hooks.h" #include "squirrel.h" #include "masterserver.h" #include "serverauthentication.h" -#include "gameutils.h" +#include "r2client.h" // annoying helper function because i can't figure out getting players or entities from sqvm rn // wish i didn't have to do it like this, but here we are @@ -54,7 +53,7 @@ SQRESULT SQ_IsPlayerIndexLocalPlayer(void* sqvm) return SQRESULT_ERROR; } - g_pServerSquirrel->sq_pushbool(sqvm, !strcmp(g_LocalPlayerUserID, (char*)player + 0xF500)); + g_pServerSquirrel->sq_pushbool(sqvm, !strcmp(R2::g_LocalPlayerUserID, (char*)player + 0xF500)); return SQRESULT_NOTNULL; } |