Decompile 3 functions in Source/UI/Window/UIDebuffRemoveWnd.cpp, Source/UI/UICaptchaRegisterWnd.cpp, ...
Batch #13524 by SapitoSucio: 0 byte-identical, 3 confirmed by peer review. - fn_12940 UIDebuffRemoveWnd::SendMsg: logic confirmed by peer review - fn_09790 UICaptchaRegisterWnd::SendMsg: logic confirmed by peer review - fn_09801 UIMacroBlackListCheckWnd::SendMsg: logic confirmed by peer review Peer-reviewed-by: eAthena, Tanke Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
ae5950f1d0
commit
fcb2e0fe02
3 changed files with 3 additions and 6 deletions
|
|
@ -171,8 +171,7 @@ int UICaptchaRegisterWnd::SendMsg(
|
|||
memcpy_s(packet.text, sizeof(packet.text), this->m_editCtrl->Text(), sizeof(packet.text));
|
||||
packet.size = static_cast<std::int16_t>(this->m_decompressedSize);
|
||||
|
||||
CRagConnection& connection = GetRagConnection();
|
||||
connection.Send(g_packetLengths.FixedLength(packet.id), &packet);
|
||||
GetRagConnection().Send(reinterpret_cast<PacketLengths&>(GetRagConnection()).FixedLength(packet.id), &packet);
|
||||
|
||||
g_serverLanguage->ResetInput();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -194,8 +194,7 @@ int UIMacroBlackListCheckWnd::SendMsg(
|
|||
MacroBlackListCheckPacket packet;
|
||||
packet.id = 0x0BDC;
|
||||
strncpy_s(packet.text, sizeof(packet.text), this->input, _TRUNCATE);
|
||||
CRagConnection& connection = GetRagConnection();
|
||||
connection.Send(g_packetLengths.FixedLength(packet.id), &packet);
|
||||
GetRagConnection().Send(reinterpret_cast<PacketLengths&>(GetRagConnection()).FixedLength(packet.id), &packet);
|
||||
this->inputLength = 0;
|
||||
std::memset(this->input, 0, sizeof(this->input));
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -46,8 +46,7 @@ int UIDebuffRemoveWnd::SendMsg(UIWindow* sender, int message, std::intptr_t a, s
|
|||
if (a == 184) {
|
||||
DebuffRemovePacket packet;
|
||||
packet.id = 0xC2A;
|
||||
CRagConnection& connection = GetRagConnection();
|
||||
connection.Send(g_packetLengths.FixedLength(packet.id), &packet);
|
||||
GetRagConnection().Send(reinterpret_cast<PacketLengths&>(GetRagConnection()).FixedLength(packet.id), &packet);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue