Decompile fn_12512 (UIEscOptionWnd::UIEscOptionWnd)

Batch #18169 by eAthena: 1 byte-identical, 0 confirmed by peer review.

- fn_12512 UIEscOptionWnd::UIEscOptionWnd: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-12 11:04:35 +00:00
commit fce16ff48d

View file

@ -73,17 +73,11 @@ void UIEscOptionWnd::LayoutButtons() {
UIEscOptionWnd::UIEscOptionWnd()
: UIFrameWnd(0), m_titleHeight(17) {
CGameMode* mode = static_cast<CGameMode*>(g_modeMgr.GetGameMode());
int escMode;
if (mode->isPlayerDead != 0) {
if (!mode->HasResurrectionItem() && !g_session.HasSkillEffect(580)) {
escMode = 1;
} else {
escMode = 2;
}
this->m_mode = !mode->HasResurrectionItem() && !g_session.HasSkillEffect(580) ? 1 : 2;
} else {
escMode = 0;
this->m_mode = 0;
}
this->m_mode = escMode;
}
#include "Contents/Party/AdventurerAgencyMgr.h"