Skip to content

Commit d460d93

Browse files
author
Sebastian Jura
authored
Allow getCursorPosition if console or chat input is open (PR #3010, Fixes #1166)
1 parent 48c8209 commit d460d93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4973,7 +4973,7 @@ bool CStaticFunctionDefinitions::FadeCamera(bool bFadeIn, float fFadeTime, unsig
49734973

49744974
bool CStaticFunctionDefinitions::GetCursorPosition(CVector2D& vecCursor, CVector& vecWorld)
49754975
{
4976-
if (m_pClientGame->AreCursorEventsEnabled() || GUIGetInputEnabled())
4976+
if (m_pClientGame->AreCursorEventsEnabled() || GUIGetInputEnabled() || g_pCore->GetConsole()->IsVisible() || g_pCore->IsChatInputEnabled())
49774977
{
49784978
tagPOINT point;
49794979
GetCursorPos(&point);

0 commit comments

Comments
 (0)