Merge branch 'master' into testing

This commit is contained in:
TotallyNotElite 2018-12-05 17:00:37 +01:00 committed by GitHub
commit 88098ac4ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -418,7 +418,9 @@ void level_init()
{
level_init_timer.update();
}
static HookedFunction Paint(HookedFunctions_types::HF_Draw, "anti_motd_info", 3, []() {
#if ENABLE_VISUALS
static HookedFunction Paint(HookedFunctions_types::HF_Draw, "anti_motd_info", 3, [](){
if (!catbotmode || !anti_motd)
return;
if (CE_BAD(LOCAL_E) || !LOCAL_E->m_bAlivePlayer())
@ -426,4 +428,5 @@ static HookedFunction Paint(HookedFunctions_types::HF_Draw, "anti_motd_info", 3,
AddCenterString(health, colors::green);
AddCenterString(ammo, colors::yellow);
});
#endif
} // namespace hacks::shared::catbot