diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2023-02-12 21:15:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-12 21:15:00 +0000 |
commit | 95b41b6f8cc612953eafd7f8b6b40124e1590bc7 (patch) | |
tree | 400746bace6855c210e020a5ca93b84c2fdd0dc9 /NorthstarDLL/server/auth/bansystem.cpp | |
parent | b61ed18a86ddd2d7ab0e80992859750a49a9c4f6 (diff) | |
download | NorthstarLauncher-95b41b6f8cc612953eafd7f8b6b40124e1590bc7.tar.gz NorthstarLauncher-95b41b6f8cc612953eafd7f8b6b40124e1590bc7.zip |
Add `CGlobals` class and `g_pGlobals`, and update code to support (#411)
* add CGlobals class and g_pGlobals, and update scripts to support
* don't automatically enable antispeedhack (oops)
* add dedicated.cpp
* format
* bad push oops
* reformat again
Diffstat (limited to 'NorthstarDLL/server/auth/bansystem.cpp')
-rw-r--r-- | NorthstarDLL/server/auth/bansystem.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/NorthstarDLL/server/auth/bansystem.cpp b/NorthstarDLL/server/auth/bansystem.cpp index 56719ed9..47df495d 100644 --- a/NorthstarDLL/server/auth/bansystem.cpp +++ b/NorthstarDLL/server/auth/bansystem.cpp @@ -2,7 +2,6 @@ #include "pch.h" #include "bansystem.h" #include "serverauthentication.h" -#include "shared/maxplayers.h" #include "core/convar/concommand.h" #include "server/r2server.h" #include "engine/r2engine.h" @@ -184,7 +183,7 @@ void ConCommand_ban(const CCommand& args) if (args.ArgC() < 2) return; - for (int i = 0; i < R2::GetMaxPlayers(); i++) + for (int i = 0; i < R2::g_pGlobals->m_nMaxClients; i++) { R2::CBaseClient* player = &R2::g_pClientArray[i]; |