summaryrefslogtreecommitdiff
path: root/cheat/internal_rewrite/extra.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cheat/internal_rewrite/extra.cpp')
-rw-r--r--cheat/internal_rewrite/extra.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cheat/internal_rewrite/extra.cpp b/cheat/internal_rewrite/extra.cpp
index 6882f21..e95a840 100644
--- a/cheat/internal_rewrite/extra.cpp
+++ b/cheat/internal_rewrite/extra.cpp
@@ -83,12 +83,14 @@ namespace features
}
void c_extra::add_latency( INetChannel* channel ) {
+ // todo @boris:
+ // replace this with sharklazer's method
+
if ( g_ctx.m_local && g_ctx.m_local->is_valid( ) ) {
auto nci = g_csgo.m_engine( )->GetNetChannelInfo( );
float in_latency = nci->GetLatency( 0 );
- //arbitrary number much
float latency = 0.15f - ( in_latency + g_csgo.m_globals->m_frametime ) - TICK_INTERVAL( );
if( g_settings.misc.net_fakelag && latency > 0.f ) {