Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down