fixed cursor being invisible, fix #83
This commit is contained in:
parent
5aeccd7fbe
commit
00bcc75f04
@ -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);
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user