From 499d562749cc7fe9a79af2a7dce4991c95ad90d1 Mon Sep 17 00:00:00 2001 From: shelru Date: Thu, 20 Oct 2016 20:52:48 +0300 Subject: [PATCH] 2.2n --- MiniBase/client.cpp | 8 +------- MiniBase/enginemsg.cpp | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/MiniBase/client.cpp b/MiniBase/client.cpp index 1ba81bf..27d7d26 100644 --- a/MiniBase/client.cpp +++ b/MiniBase/client.cpp @@ -21,7 +21,6 @@ cvar_t *events_block; cvar_t *ex_thud; cvar_t *motd_block; -cvar_t *type; void HookEngineMessages(){ pEngineMsgBase = (PEngineMsg)offset.FindSVCMessages(); pSVC_StuffText = HookEngineMsg("svc_stufftext", SVC_StuffText); @@ -96,8 +95,6 @@ void Reload(){ sprintf(cvarname, "logs %s", value); g_Engine.pfnClientCmd(cvarname);memset(value, 0, sizeof(value)); memset(cvarname, 0, sizeof(cvarname)); GetPrivateProfileString(TEXT("Settings"), TEXT("motd_block"), TEXT("0"), value, ARRAYSIZE(value), g_settingsFileName); sprintf(cvarname, "motd_block %s", value); g_Engine.pfnClientCmd(cvarname);memset(value, 0, sizeof(value)); memset(cvarname, 0, sizeof(cvarname)); - GetPrivateProfileString(TEXT("Settings"), TEXT("type"), TEXT("0"), value, ARRAYSIZE(value), g_settingsFileName); - sprintf(cvarname, "type %s", value); g_Engine.pfnClientCmd(cvarname); memset(value, 0, sizeof(value)); memset(cvarname, 0, sizeof(cvarname)); GetPrivateProfileString(TEXT("Settings"), TEXT("events_block"), TEXT("0"), value, ARRAYSIZE(value), g_settingsFileName); sprintf(cvarname, "events_block %s", value); g_Engine.pfnClientCmd(cvarname); memset(value, 0, sizeof(value)); memset(cvarname, 0, sizeof(cvarname)); @@ -151,7 +148,7 @@ void InitHack(){ } if (!(g_Engine.Con_IsVisible() != 0))g_Engine.pfnClientCmd("toggleconsole"); - ConsolePrintColor(0, 255, 11, "-- Extra Mirror v2.2\n"); + ConsolePrintColor(0, 255, 11, "-- Extra Mirror v2.2n\n"); ConsolePrintColor(255, 255, 255, "-- Use 'credits' for more information\n"); ConsolePrintColor(255, 255, 255, "-- Thank's to Realwar for title\n"); ConsolePrintColor(255, 255, 255, "-- Thank's to FightMagister for functions\n"); @@ -167,9 +164,6 @@ void InitHack(){ events_block = g_pEngine->pfnRegisterVariable("events_block", value, 0); memset(value, 0, sizeof(value)); GetPrivateProfileString(TEXT("Settings"), TEXT("motd_block"), TEXT("0"), value, ARRAYSIZE(value), g_settingsFileName); motd_block = g_pEngine->pfnRegisterVariable("motd_block", value, 0);memset(value, 0, sizeof(value)); - GetPrivateProfileString(TEXT("Settings"), TEXT("type"), TEXT("0"), value, ARRAYSIZE(value), g_settingsFileName); - type = g_pEngine->pfnRegisterVariable("type", value, 0); memset(value, 0, sizeof(value)); - GetPrivateProfileString(TEXT("Settings"), TEXT("type"), TEXT("0"), value, ARRAYSIZE(value), g_settingsFileName); } void HookEventMessages(){ diff --git a/MiniBase/enginemsg.cpp b/MiniBase/enginemsg.cpp index 5481b6b..a113f9e 100644 --- a/MiniBase/enginemsg.cpp +++ b/MiniBase/enginemsg.cpp @@ -29,7 +29,6 @@ HL_MSG_ReadBitVec3Coord MSG_ReadBitVec3Coord = nullptr; HL_MSG_ReadBits MSG_ReadBits = nullptr; HL_MSG_StartBitReading MSG_StartBitReading = nullptr; HL_MSG_EndBitReading MSG_EndBitReading = nullptr; -extern cvar_t *type; void MSG_SaveReadCount(){ MSG_SavedReadCount = *MSG_ReadCount; }