Decompile fn_24153 (CSession::EndSkillOption)
Batch #12520 by Toshiro: 0 byte-identical, 1 confirmed by peer review. - fn_24153 CSession::EndSkillOption: logic confirmed by peer review Peer-reviewed-by: Yommy, gordaoprogramas 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
ebbda1f823
commit
6aec4bb360
2 changed files with 4 additions and 2 deletions
|
|
@ -1870,13 +1870,14 @@ void CSession::AddUnknown7F94(std::uint32_t id) {
|
|||
// OFFSET: 0x00E2F3B0
|
||||
// FUNCTION: fn_24153
|
||||
void CSession::EndSkillOption() {
|
||||
if (this->GetOption(2) != 0) {
|
||||
auto option = this->m_options.m_values.find(2);
|
||||
if (option != this->m_options.m_values.end() && static_cast<int>(option->second) != 0) {
|
||||
this->unknown_61A4 = 0;
|
||||
PACKET_CZ_USE_SKILL_END packet;
|
||||
packet.packetType = ID_CZ_USE_SKILL_END;
|
||||
packet.skillId = GC_ROLLINGCUTTER;
|
||||
GetRagConnection().Send(sizeof(packet), &packet);
|
||||
this->m_options.Set(2, 0);
|
||||
this->m_options.m_values[2] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue