summaryrefslogtreecommitdiff
path: root/cheat/internal_rewrite
diff options
context:
space:
mode:
authorboris <wzn@moneybot.cc>2018-12-27 23:07:38 +1300
committerboris <wzn@moneybot.cc>2018-12-27 23:07:38 +1300
commit882ef7d46578d99608f4af9bfb73d83b23208eae (patch)
tree42d2ad63c8df3e10227488e2775b1282a8446055 /cheat/internal_rewrite
parent3927cdd35b468b52fd689551ba70f17d6bd86eb2 (diff)
fixed dumb fake ping retardation autism
reminder to nave: curtime != realtime
Diffstat (limited to 'cheat/internal_rewrite')
-rw-r--r--cheat/internal_rewrite/extra.cpp4
-rw-r--r--cheat/internal_rewrite/extra.hpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/cheat/internal_rewrite/extra.cpp b/cheat/internal_rewrite/extra.cpp
index cbca0be..2cffb39 100644
--- a/cheat/internal_rewrite/extra.cpp
+++ b/cheat/internal_rewrite/extra.cpp
@@ -99,7 +99,7 @@ namespace features
// clear outdated records
for( size_t i{ }; i < m_net_records.size( ); ++i ) {
- const float delta = g_csgo.m_globals->m_curtime - m_net_records.at( i ).m_curtime;
+ const float delta = g_csgo.m_globals->m_realtime - m_net_records.at( i ).m_realtime;
// 200ms is the max we can fake anyway..
// hnn this might be why it's so fucked :/
@@ -118,7 +118,7 @@ namespace features
if( g_ctx.m_local && g_ctx.m_local->is_valid( ) ) {
// god this is autistic
for( auto& it : m_net_records ) {
- const float delta = g_csgo.m_globals->m_curtime - it.m_curtime;
+ const float delta = g_csgo.m_globals->m_realtime - it.m_realtime;
if( delta >= latency ) {
// apply latency
diff --git a/cheat/internal_rewrite/extra.hpp b/cheat/internal_rewrite/extra.hpp
index f3ab837..5c7d5f4 100644
--- a/cheat/internal_rewrite/extra.hpp
+++ b/cheat/internal_rewrite/extra.hpp
@@ -9,7 +9,7 @@ namespace features
// i'm gay
struct netchan_record_t {
- float m_curtime;
+ float m_realtime;
int32_t m_reliable;
int32_t m_sequence;
};