From 803f92d03c2021098a6a59fe1f753aea3feb3dce Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 13:40:31 +0000 Subject: [PATCH] Decompile fn_20389 (CConnection::Connect) Batch #17032 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_20389 CConnection::Connect: logic confirmed by peer review Peer-reviewed-by: Yommy, alisonrag, br4yan Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Network/Connection/Connection.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Source/Network/Connection/Connection.cpp b/Source/Network/Connection/Connection.cpp index ce045621a..77d59d9e4 100644 --- a/Source/Network/Connection/Connection.cpp +++ b/Source/Network/Connection/Connection.cpp @@ -66,14 +66,7 @@ namespace { // OFFSET: 0x00C7C4D0 // FUNCTION: fn_20389 bool CConnection::Connect(const ConnectionEndpoint& endpoint) { - this->m_deferred = 0; - - while (this->m_pending.GetSize() != 0) { - const int bytes = this->m_pending.GetSize(); - this->m_output.InsertData(bytes, this->m_pending.Data()); - this->m_pending.RemoveData(bytes); - this->Flush(); - } + this->SetBlock(0); this->m_input.Init(0xA000); this->m_output.Init(0xA000);