another fix

This commit is contained in:
BenCat07 2018-04-12 16:06:58 +02:00
parent d69efbb117
commit df13f91c64

View File

@ -1025,14 +1025,12 @@ void LevelInit_hook(void *_this, const char *newmap)
bool load_success = LoadNamedSkys(skynum[(int) skybox_changer]); bool load_success = LoadNamedSkys(skynum[(int) skybox_changer]);
logging::Info("Skybox Loading successful: %s", logging::Info("Skybox Loading successful: %s",
load_success ? "true" : "false"); load_success ? "true" : "false");
if (halloween_mode) { ConVar* holiday = g_ICvar->FindVar("tf_forced_holiday");
ConVar* holiday = g_ICvar->FindVar("tf_forced_holiday"); if (halloween_mode)
holiday->SetValue(2); holiday->SetValue(2);
} else if (holiday->m_nValue == 2)
else if (ConVar(g_ICvar->FindVar("tf_forced_holiday")).m_nValue == 2) {
ConVar* holiday = g_ICvar->FindVar("tf_forced_holiday");
holiday->SetValue(2); holiday->SetValue(2);
}
g_IEngine->ClientCmd_Unrestricted("exec cat_matchexec"); g_IEngine->ClientCmd_Unrestricted("exec cat_matchexec");
hacks::shared::aimbot::Reset(); hacks::shared::aimbot::Reset();
chat_stack::Reset(); chat_stack::Reset();