From aedab9e9dddf4ffeeace1e81ec877e08aafb3ee7 Mon Sep 17 00:00:00 2001 From: kurta999 Date: Thu, 15 Dec 2016 12:24:42 +0100 Subject: [PATCH] Disable debug messages --- src/Addresses.cpp | 2 +- src/CServer.cpp | 4 ++-- src/CServer.h | 3 +-- src/Scripting.cpp | 3 --- src/main.cpp | 2 +- 5 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/Addresses.cpp b/src/Addresses.cpp index c6589e4..ab5cb5f 100644 --- a/src/Addresses.cpp +++ b/src/Addresses.cpp @@ -169,7 +169,7 @@ void CAddress::Initialize(eSAMPVersion sampVersion) // DWORD addr = FindPattern("\x55\x31\xD2\x89\xE5\x57\xB9\x40\x00\x00\x00", "xxxxxxxxxxx"); - logprintf("addr: %x", addr); + //logprintf("addr: %x", addr); FUNC_ProcessQueryPacket = FindPattern("\x81\xEC\xA8\x00\x00\x00\x89\x5D\xF4\x8B\x5D\x14\x89\x75\xF8", "xxxxxxxxxxxxxxx") - 0x3; FUNC_Packet_WeaponsUpdate = FindPattern("\x55\x31\xC0\x89\xE5\x81\xEC\x58\x01\x00\x00", "xxxxxxxxxxx"); diff --git a/src/CServer.cpp b/src/CServer.cpp index eac4591..b70d2ed 100644 --- a/src/CServer.cpp +++ b/src/CServer.cpp @@ -138,14 +138,14 @@ bool CServer::OnPlayerStreamIn(WORD playerid, WORD forplayerid) { if(pPlayerData[forplayerid]->stObj[i].wAttachPlayerID == playerid && !pPlayerData[forplayerid]->bAttachedObjectCreated) { - logprintf("should work"); + //logprintf("should work"); if(!pObjectPool->pPlayerObjects[forplayerid][i]) { logprintf("YSF ASSERTATION FAILED - m_pPlayerObjects = 0"); return 0; } - logprintf("attach objects i: %d, forplayerid: %d", i, forplayerid); + //logprintf("attach objects i: %d, forplayerid: %d", i, forplayerid); // First create the object for the player. We don't remove it from the pools, so we need to send RPC for the client to create object RakNet::BitStream bs; bs.Write(pObjectPool->pPlayerObjects[forplayerid][i]->wObjectID); // m_wObjectID diff --git a/src/CServer.h b/src/CServer.h index ad00699..ffe4d7c 100644 --- a/src/CServer.h +++ b/src/CServer.h @@ -46,7 +46,6 @@ class CYSFPickupPool; #include #include #include -#include class CServer : public CSingleton { @@ -119,7 +118,7 @@ class CServer : public CSingleton DWORD m_dwAFKAccuracy; std::set m_BannedIPs; - std::map m_ConsoleMessagePlayers; + std::unordered_map m_ConsoleMessagePlayers; std::set m_vecValidNameCharacters; }; diff --git a/src/Scripting.cpp b/src/Scripting.cpp index 4fae9d4..e07c148 100644 --- a/src/Scripting.cpp +++ b/src/Scripting.cpp @@ -41,7 +41,6 @@ AMX_DECLARE_NATIVE(Natives::execute) char command[4096]; CScriptParams::Get()->Read(&command[0]); - logprintf("cmd: %s", command); system(command); return 1; @@ -561,8 +560,6 @@ AMX_DECLARE_NATIVE(Natives::AddServerRule) char name[65], value[64]; CScriptParams::Get()->ReadInline(&name[0], &value[0]); - logprintf("AddServerRule: %s - %s", name, value); - if (name && value) { ConsoleVariable_s* ConVar = CSAMPFunctions::FindVariable(name); diff --git a/src/main.cpp b/src/main.cpp index 8d788c0..90aac44 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -63,7 +63,7 @@ PLUGIN_EXPORT bool PLUGIN_CALL Load(void ** ppData) ppPluginData = ppData; pAMXFunctions = ppData[PLUGIN_DATA_AMX_EXPORTS]; logprintf = reinterpret_cast(ppData[PLUGIN_DATA_LOGPRINTF]); - logprintf("logprintf = 0x%08X\n", ppData[PLUGIN_DATA_LOGPRINTF]); + //logprintf("logprintf = 0x%08X\n", ppData[PLUGIN_DATA_LOGPRINTF]); // Check server version eSAMPVersion version = SAMP_VERSION_UNKNOWN;