diff options
author | BobTheBob9 <for.oliver.kirkham@gmail.com> | 2022-12-06 23:38:33 +0000 |
---|---|---|
committer | BobTheBob9 <for.oliver.kirkham@gmail.com> | 2022-12-06 23:38:33 +0000 |
commit | 95bd8a28eda1fcf8abf58c133de7ee4ef12fb9e2 (patch) | |
tree | 6b1e50dc5cdbc16f6686674152df337119026dfe | |
parent | fa84a073ceb84d8cebb51f57629bd5711292c83f (diff) | |
download | NorthstarLauncher-95bd8a28eda1fcf8abf58c133de7ee4ef12fb9e2.tar.gz NorthstarLauncher-95bd8a28eda1fcf8abf58c133de7ee4ef12fb9e2.zip |
fix formatting
-rw-r--r-- | NorthstarDLL/r2engine.h | 20 | ||||
-rw-r--r-- | NorthstarDLL/serverauthentication.cpp | 4 |
2 files changed, 12 insertions, 12 deletions
diff --git a/NorthstarDLL/r2engine.h b/NorthstarDLL/r2engine.h index bb399f60..1b1fc081 100644 --- a/NorthstarDLL/r2engine.h +++ b/NorthstarDLL/r2engine.h @@ -159,16 +159,16 @@ namespace R2 enum class eSignonState : int { - NONE = 0, // no state yet; about to connect - CHALLENGE = 1, // client challenging server; all OOB packets - CONNECTED = 2, // client is connected to server; netchans ready - NEW = 3, // just got serverinfo and string tables - PRESPAWN = 4, // received signon buffers - GETTINGDATA = 5, // respawn-defined signonstate, assumedly this is for persistence - SPAWN = 6, // ready to receive entity packets - FIRSTSNAP = 7, // another respawn-defined one - FULL = 8, // we are fully connected; first non-delta packet received - CHANGELEVEL = 9, // server is changing level; please wait + NONE = 0, // no state yet; about to connect + CHALLENGE = 1, // client challenging server; all OOB packets + CONNECTED = 2, // client is connected to server; netchans ready + NEW = 3, // just got serverinfo and string tables + PRESPAWN = 4, // received signon buffers + GETTINGDATA = 5, // respawn-defined signonstate, assumedly this is for persistence + SPAWN = 6, // ready to receive entity packets + FIRSTSNAP = 7, // another respawn-defined one + FULL = 8, // we are fully connected; first non-delta packet received + CHANGELEVEL = 9, // server is changing level; please wait }; // clang-format off diff --git a/NorthstarDLL/serverauthentication.cpp b/NorthstarDLL/serverauthentication.cpp index ea5decd9..60d59418 100644 --- a/NorthstarDLL/serverauthentication.cpp +++ b/NorthstarDLL/serverauthentication.cpp @@ -212,7 +212,7 @@ void ServerAuthenticationManager::AuthenticatePlayer(R2::CBaseClient* pPlayer, u pPlayer->m_iPersistenceReady = R2::ePersistenceReady::READY_REMOTE; } // we probably allow insecure at this point, but make sure not to write anyway if not insecure - else if (Cvar_ns_auth_allow_insecure->GetBool() || pPlayer->m_bFakePlayer) + else if (Cvar_ns_auth_allow_insecure->GetBool() || pPlayer->m_bFakePlayer) { // set persistent data as ready // note: actual placeholder persistent data is populated in script with InitPersistentData() @@ -316,7 +316,7 @@ bool,, (R2::CBaseClient* self, char* pName, void* pNetChannel, char bFakePlayer, pAuthenticationFailure = "Authentication Failed."; } else // need to copy name for bots still - strncpy_s(pVerifiedName, pName, 63); + strncpy_s(pVerifiedName, pName, 63); if (pAuthenticationFailure) { |