From b0bef05111a95a4cce6250d2b79e2aa5baa6dd98 Mon Sep 17 00:00:00 2001 From: BobTheBob9 Date: Mon, 18 Jul 2022 00:00:39 +0100 Subject: use modular ServerPresence system for registering servers --- NorthstarDLL/limits.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'NorthstarDLL/limits.h') diff --git a/NorthstarDLL/limits.h b/NorthstarDLL/limits.h index 2303ba5e..cf87b745 100644 --- a/NorthstarDLL/limits.h +++ b/NorthstarDLL/limits.h @@ -1,5 +1,5 @@ #pragma once -#include "r2server.h" +#include "r2engine.h" #include "convar.h" #include @@ -32,13 +32,13 @@ class ServerLimitsManager ConVar* Cvar_sv_querylimit_per_sec; ConVar* Cvar_sv_max_chat_messages_per_sec; - std::unordered_map m_PlayerLimitData; + std::unordered_map m_PlayerLimitData; std::vector m_UnconnectedPlayerLimitData; public: - void AddPlayer(R2::CBasePlayer* player); - bool CheckStringCommandLimits(R2::CBasePlayer* player); - bool CheckChatLimits(R2::CBasePlayer* player); + void AddPlayer(R2::CBaseClient* player); + bool CheckStringCommandLimits(R2::CBaseClient* player); + bool CheckChatLimits(R2::CBaseClient* player); }; extern ServerLimitsManager* g_pServerLimits; -- cgit v1.2.3