summaryrefslogtreecommitdiff
path: root/cheat/internal_rewrite/create_move.cpp
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2018-12-03 22:03:34 +0100
committernavewindre <boneyaard@gmail.com>2018-12-03 22:03:41 +0100
commit716be28826ac61491944490373402c39123a1d75 (patch)
tree60614ff806843ccfde19c95bd28a8a25a230a54f /cheat/internal_rewrite/create_move.cpp
parent4047e9083ef1731847bcd75f361f2d611fe5e401 (diff)
boris is cool
Diffstat (limited to 'cheat/internal_rewrite/create_move.cpp')
-rw-r--r--cheat/internal_rewrite/create_move.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cheat/internal_rewrite/create_move.cpp b/cheat/internal_rewrite/create_move.cpp
index a59930e..54c393e 100644
--- a/cheat/internal_rewrite/create_move.cpp
+++ b/cheat/internal_rewrite/create_move.cpp
@@ -109,8 +109,13 @@ bool __fastcall hooks::create_move( void* ecx_, void* edx_, float input_sample_f
cl->m_netchannel->m_nChokedPackets = 0;
+ int in_seq = cl->m_netchannel->m_nInSequenceNr;
+
+ g_cheat.m_extra.add_latency( cl->m_netchannel );
send_datagram_o( cl->m_netchannel, 0, 0 );
+ cl->m_netchannel->m_nInSequenceNr = in_seq;
+
cl->m_netchannel->m_nOutSequenceNr--;
cl->m_netchannel->m_nChokedPackets = choked;
}