Decompile fn_13628 (EquipWndInfo::IsValid)
Batch #4191 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_13628 EquipWndInfo::IsValid: logic confirmed by peer review Peer-reviewed-by: eAthena, Yommy, superintelligence 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
005bc98576
commit
dcbab32c07
3 changed files with 23 additions and 1 deletions
|
|
@ -127,6 +127,24 @@ int EmotionWndInfo::IsValid() const {
|
|||
this->y <= g_renderer->viewport.height - this->height;
|
||||
}
|
||||
|
||||
// OFFSET: 0x009A53E0
|
||||
// FUNCTION: fn_13628
|
||||
int EquipWndInfo::IsValid() const {
|
||||
if (this->width != 280) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
const int extraHeight = g_session.m_swapEquipmentMode == 1 ? 158 : 0;
|
||||
if (this->height != 167 && this->height != 17 && this->height != 187 && this->height != 187 + extraHeight) {
|
||||
return 0;
|
||||
}
|
||||
if (this->unknown_0010 != 167 && this->unknown_0010 != 187) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return this->x >= 0 && this->x <= g_renderer->viewport.width - 280 && this->y >= 0 && this->y <= g_renderer->viewport.height - this->height;
|
||||
}
|
||||
|
||||
// OFFSET: 0x009A5460
|
||||
// FUNCTION: fn_13629
|
||||
int ExchangeAcceptWndInfo::IsValid() const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue