diff --git a/src/main.cpp b/src/main.cpp index 873a26a..8d11bb5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -49,14 +49,15 @@ void SpitShit(); void DrawString(int x, int y, Color clr, vgui::HFont font, const char *pszText) { - if (pszText == NULL) - return; + if (pszText != NULL) + { wchar_t szString[1024] = { '\0' }; wsprintfW(szString, L"%S", pszText); g_pMatSurface->DrawSetTextPos(x, y); g_pMatSurface->DrawSetTextFont(font); g_pMatSurface->DrawSetTextColor(clr); g_pMatSurface->DrawPrintText(szString, wcslen(szString)); + } } bool WorldToScreen(Vector &vOrigin, Vector &vScreen) @@ -111,9 +112,8 @@ void __fastcall hkPaintTraverse(void* ecx, void* edx, unsigned int vguiPanel, bo { if (GetAsyncKeyState(VK_F11) & 1) - { g_pCVar->ConsoleColorPrintf(Color::Red(), "Hello World!"); - } + C_BaseEntity *pLocalEntity = (C_BaseEntity*)entitylist->GetClientEntity(engine->GetLocalPlayer()); if (!pLocalEntity)