Decompile 3 functions in Source/Contents/ClientTiming.cpp, Source/Contents/ClientState.cpp, ...
Batch #6071 by eAthena: 1 byte-identical, 2 confirmed by peer review. - fn_23490 CSession::LoadDamageSkinSettings: logic confirmed by peer review - fn_23493 CSession::ClearHomunStatus: byte-identical - fn_24208 CSession::ReadReplayEntryQueue: logic confirmed by peer review Peer-reviewed-by: superintelligence, Snow, System4z 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
c77d03d4c0
commit
383263b4ca
3 changed files with 143 additions and 2 deletions
|
|
@ -728,3 +728,41 @@ std::uint32_t CSession::SyncServerTime(std::uint32_t serverTime) {
|
|||
this->m_serverTimeAdjustCount = 0;
|
||||
return serverTime + 144;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00DE4D80
|
||||
// FUNCTION: fn_23490
|
||||
void CSession::LoadDamageSkinSettings() {
|
||||
g_luaScript->Call("GetDamageSkinSize", ">d", &this->unknown_80C8);
|
||||
if (this->m_damageSkinIndex < 0 || this->m_damageSkinIndex >= this->unknown_80C8) {
|
||||
this->m_damageSkinIndex = 0;
|
||||
}
|
||||
if (this->m_damageSkinMode < 0 || this->m_damageSkinMode >= 4) {
|
||||
this->m_damageSkinMode = 0;
|
||||
}
|
||||
|
||||
const char* resourceName = nullptr;
|
||||
const char* name80EC = nullptr;
|
||||
const char* name8104 = nullptr;
|
||||
g_luaScript->Call("GetDamageResourceName", "d>sss", this->m_damageSkinIndex, &resourceName, &name80EC, &name8104);
|
||||
if (resourceName) {
|
||||
this->m_damageResourceName = resourceName;
|
||||
}
|
||||
if (name80EC) {
|
||||
this->unknown_80EC = name80EC;
|
||||
}
|
||||
if (name8104) {
|
||||
this->unknown_8104 = name8104;
|
||||
}
|
||||
g_luaScript->Call("GetDamageMillionUnit", "d>d", this->m_damageSkinIndex, &this->m_damageMillionUnit);
|
||||
}
|
||||
|
||||
// OFFSET: 0x00DE5B40
|
||||
// FUNCTION: fn_23493
|
||||
void CSession::ClearHomunStatus() {
|
||||
this->unknown_5608 = 0;
|
||||
this->unknown_560C = 0;
|
||||
this->unknown_5610 = 0;
|
||||
this->unknown_55FC = 0;
|
||||
this->unknown_5600 = 0;
|
||||
this->unknown_5604 = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue