From 00bcc75f044ca4fea156e59d9bc879f52800b56f Mon Sep 17 00:00:00 2001 From: nullifiedcat Date: Sat, 29 Apr 2017 09:17:11 +0300 Subject: [PATCH] fixed cursor being invisible, fix #83 --- src/gui/GUI.cpp | 6 ++++-- src/helpers.cpp | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gui/GUI.cpp b/src/gui/GUI.cpp index 5865fa7a..926a6319 100644 --- a/src/gui/GUI.cpp +++ b/src/gui/GUI.cpp @@ -155,8 +155,10 @@ void CatGUI::Update() { root->Update(); if (!m_bShowTooltip && m_pTooltip->IsVisible()) m_pTooltip->Hide(); root->Draw(0, 0); - //draw::DrawRect(m_iMouseX - 5, m_iMouseY - 5, 10, 10, colors::Transparent(colors::white)); - //draw::OutlineRect(m_iMouseX - 5, m_iMouseY - 5, 10, 10, GUIColor()); + if (Visible()) { + draw::DrawRect(m_iMouseX - 5, m_iMouseY - 5, 10, 10, colors::Transparent(colors::white)); + draw::OutlineRect(m_iMouseX - 5, m_iMouseY - 5, 10, 10, GUIColor()); + } if (gui_draw_bounds) { root->DrawBounds(0, 0); } diff --git a/src/helpers.cpp b/src/helpers.cpp index cb6e82ba..47701613 100644 --- a/src/helpers.cpp +++ b/src/helpers.cpp @@ -342,7 +342,7 @@ bool IsEntityVectorVisible(CachedEntity* entity, Vector endpos) { ray.Init(g_pLocalPlayer->v_Eye, endpos); { PROF_SECTION(IEVV_TraceRay); - g_ITrace->TraceRay(ray, MASK_SHOT, trace::g_pFilterDefault, &trace_object); + g_ITrace->TraceRay(ray, MASK_SHOT_HULL, trace::g_pFilterDefault, &trace_object); } return (trace_object.fraction >= 0.99f || (((IClientEntity*)trace_object.m_pEnt)) == RAW_ENT(entity)); }