Batch #5450 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_09729 FuncDrawWNDChar::DrawOnTop: logic confirmed by peer review Peer-reviewed-by: willerthal, tayoba, Snow Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
29 lines
850 B
C++
29 lines
850 B
C++
#include "UI/Window/FuncDrawWNDChar.h"
|
|
#include "Client/Session.h"
|
|
#include "Script/LuaScript.h"
|
|
|
|
// OFFSET: 0x007D4840
|
|
// FUNCTION: fn_09582
|
|
FuncDrawWNDChar::~FuncDrawWNDChar() = default;
|
|
|
|
// OFFSET: 0x007E4FB0
|
|
// FUNCTION: fn_09729
|
|
bool FuncDrawWNDChar::DrawOnTop() {
|
|
int job = this->m_job;
|
|
bool drawOnTop = true;
|
|
|
|
if (g_session.m_newRobeDrawOnTop == 1) {
|
|
if (this->m_flags == 1) {
|
|
job = g_session.GetRidingJob(job);
|
|
}
|
|
|
|
int layer = job;
|
|
if (g_session.m_hotkeyScript->Call("_New_DrawOnTop", "ddddd>bd", this->m_robe, this->m_sex, job, this->m_action, this->m_motion, &drawOnTop, &layer) == 1) {
|
|
return drawOnTop;
|
|
}
|
|
} else if (g_session.m_hotkeyScript->Call("DrawOnTop", "ddddd>b", this->m_robe, this->m_sex, job, this->m_action, this->m_motion, &drawOnTop) == 1) {
|
|
return drawOnTop;
|
|
}
|
|
|
|
return true;
|
|
}
|