summaryrefslogtreecommitdiff
path: root/cheat/internal_rewrite/packet_start.cpp
diff options
context:
space:
mode:
authorboris <wzn@moneybot.cc>2018-12-05 18:11:08 +1300
committerboris <wzn@moneybot.cc>2018-12-05 18:11:08 +1300
commit65ce24409cbb7a4da18751e5043978ded5090fac (patch)
tree0b65806aa03c2cdf9fc95b519d0b09582279381e /cheat/internal_rewrite/packet_start.cpp
parent793965d3c2816fc1b672c9173b3b831d82cdec33 (diff)
im a retard
double events still happen :|
Diffstat (limited to 'cheat/internal_rewrite/packet_start.cpp')
-rw-r--r--cheat/internal_rewrite/packet_start.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cheat/internal_rewrite/packet_start.cpp b/cheat/internal_rewrite/packet_start.cpp
index c24e722..ecc35f8 100644
--- a/cheat/internal_rewrite/packet_start.cpp
+++ b/cheat/internal_rewrite/packet_start.cpp
@@ -7,21 +7,21 @@ void __fastcall hooks::packet_start( void* ecx, void* edx, int in_seq, int out_a
*( int* )( uintptr_t( ecx ) + 0x114 ) = in_seq;
*( int* )( uintptr_t( ecx ) + 0x4cb4 ) = out_ack;
}
-
+
// okay now this is epic
- //printf("%08x -> %08x\n", &hooks::packet_start, hooks::packet_start_o);
-
+ // printf("%08x -> %08x\n", &hooks::packet_start, hooks::packet_start_o);
+
for( auto cmd_number = g_ctx.m_cmd_numbers.begin( ); cmd_number != g_ctx.m_cmd_numbers.end( ); ) {
if( *cmd_number == out_ack ) {
auto cl = ( uintptr_t )( ecx );
-
+
*( int* )( cl + 0x114 ) = in_seq;
*( int* )( cl + 0x4cb4 ) = out_ack;
-
+
g_ctx.m_cmd_numbers.erase( cmd_number );
return;
}
-
+
cmd_number++;
}
} \ No newline at end of file