Decompile fn_04314 (UIReputeWnd::Paint)
Batch #17054 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_04314 UIReputeWnd::Paint: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Yommy, br4yan 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
d3b9da80a3
commit
dfa456d091
3 changed files with 17 additions and 19 deletions
|
|
@ -185,10 +185,9 @@ int UIWindowMgr::ProcessMouse() {
|
|||
this->deferredDeletion.clear();
|
||||
|
||||
for (auto account = this->closedMiniPartyIds.begin(); account != this->closedMiniPartyIds.end(); ++account) {
|
||||
const int accountId = *account;
|
||||
for (auto entry = this->snapExcluded.begin(); entry != this->snapExcluded.end();) {
|
||||
UIWindow* window = *entry;
|
||||
if (static_cast<int>(PartyMember(static_cast<UIMiniPartyWnd*>(window)).accountId) == accountId) {
|
||||
if (*account == static_cast<int>(PartyMember(static_cast<UIMiniPartyWnd*>(window)).accountId)) {
|
||||
this->Destroy(window);
|
||||
entry = this->snapExcluded.erase(entry);
|
||||
} else {
|
||||
|
|
@ -224,8 +223,6 @@ int UIWindowMgr::ProcessMouse() {
|
|||
int left;
|
||||
int top;
|
||||
WindowScreenPosition(this->inputWindow, left, top);
|
||||
const int localX = x - left;
|
||||
const int localY = y - top;
|
||||
|
||||
if (g_mouse.buttons[0] == 1) {
|
||||
UIWindow* root = this->inputWindow->Root();
|
||||
|
|
@ -233,9 +230,12 @@ int UIWindowMgr::ProcessMouse() {
|
|||
PromoteWindow(this, root);
|
||||
}
|
||||
|
||||
this->inputWindow->OnLBtnDown(localX, localY);
|
||||
this->inputWindow->OnLBtnDown(x - left, y - top);
|
||||
}
|
||||
|
||||
const int localX = x - left;
|
||||
const int localY = y - top;
|
||||
|
||||
if (g_mouse.buttons[0] == 4 && (g_replayAnimationScaling == 0 || g_modeMgr.state == 0)) {
|
||||
this->inputWindow->OnLBtnDown(localX, localY);
|
||||
this->inputWindow->OnLBtnDblClk(localX, localY);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue