aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/shared/maxplayers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDLL/shared/maxplayers.cpp')
-rw-r--r--NorthstarDLL/shared/maxplayers.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/NorthstarDLL/shared/maxplayers.cpp b/NorthstarDLL/shared/maxplayers.cpp
index 4af8ea1c..711193d4 100644
--- a/NorthstarDLL/shared/maxplayers.cpp
+++ b/NorthstarDLL/shared/maxplayers.cpp
@@ -48,21 +48,17 @@ constexpr int Team_AddedSize = Team_PlayerArray_AddedSize;
bool MaxPlayersIncreaseEnabled()
{
- static bool bMaxPlayersIncreaseEnabled = Tier0::CommandLine()->CheckParm("-experimentalmaxplayersincrease");
+ static bool bMaxPlayersIncreaseEnabled = CommandLine()->CheckParm("-experimentalmaxplayersincrease");
return bMaxPlayersIncreaseEnabled;
}
-// should we use R2 for this? not sure
-namespace R2 // use R2 namespace for game funcs
+int GetMaxPlayers()
{
- int GetMaxPlayers()
- {
- if (MaxPlayersIncreaseEnabled())
- return NEW_MAX_PLAYERS;
+ if (MaxPlayersIncreaseEnabled())
+ return NEW_MAX_PLAYERS;
- return 32;
- }
-} // namespace R2
+ return 32;
+}
template <class T> void ChangeOffset(CMemoryAddress addr, unsigned int offset)
{