summaryrefslogtreecommitdiff
path: root/internal_rewrite/lock_cursor.cpp
blob: 6edb52a5fb3628998a92093bb8e8d374da45f8da (plain)
1
2
3
4
5
6
7
8
9
10
#include "hooks.hpp"

void __fastcall hooks::lock_cursor( void* ecx_, void* edx_ ) {
	if( g_settings.menu.open || g_con->m_open ) {
		g_csgo.m_surface( )->UnlockCursor( );
		return;
	}

	lock_cursor_o( ecx_, 0 );
}