From 37dbfd75de367d41e5a2edffa00b1b6027b1bd8e Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Mon, 6 Jan 2025 00:23:55 -0500 Subject: Add item button enum and talk button enum --- src/d/d_attention.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/d/d_attention.cpp') diff --git a/src/d/d_attention.cpp b/src/d/d_attention.cpp index 30fff1ed..5c2f5f30 100644 --- a/src/d/d_attention.cpp +++ b/src/d/d_attention.cpp @@ -187,7 +187,7 @@ dAttList_c* dAttention_c::getActionBtnXYZ_local(int button) { /* 8009D9A8-8009D9FC .text getActionBtnX__12dAttention_cFv */ dAttList_c* dAttention_c::getActionBtnX() { - if (!dComIfGs_checkGetItemNum(dComIfGp_getSelectItem(0))) + if (!dComIfGs_checkGetItemNum(dComIfGp_getSelectItem(dItemBtn_X_e))) return NULL; return getActionBtnXYZ_local(0); @@ -195,7 +195,7 @@ dAttList_c* dAttention_c::getActionBtnX() { /* 8009D9FC-8009DA50 .text getActionBtnY__12dAttention_cFv */ dAttList_c* dAttention_c::getActionBtnY() { - if (!dComIfGs_checkGetItemNum(dComIfGp_getSelectItem(1))) + if (!dComIfGs_checkGetItemNum(dComIfGp_getSelectItem(dItemBtn_Y_e))) return NULL; return getActionBtnXYZ_local(1); @@ -203,7 +203,7 @@ dAttList_c* dAttention_c::getActionBtnY() { /* 8009DA50-8009DAA4 .text getActionBtnZ__12dAttention_cFv */ dAttList_c* dAttention_c::getActionBtnZ() { - if (!dComIfGs_checkGetItemNum(dComIfGp_getSelectItem(2))) + if (!dComIfGs_checkGetItemNum(dComIfGp_getSelectItem(dItemBtn_Z_e))) return NULL; return getActionBtnXYZ_local(2); @@ -668,4 +668,3 @@ void dAttLook_c::request(fopAc_ac_c*, f32, f32, f32, s16, int) { void dAttLook_c::requestF(fopAc_ac_c*, s16, int) { /* Nonmatching */ } - -- cgit v1.2.3