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

int __fastcall hooks::cl_csm_shadows_get_int( void* ecx_, void* edx_ ) {
	static auto old_fn = g_csgo.m_csm_shadows->get_old_function< decltype( &cl_csm_shadows_get_int ) >( 13 );

	if( g_settings.visuals.no_cascade_shadows )
		return 0;

	return old_fn( ecx_, edx_ );
}