summaryrefslogtreecommitdiff
path: root/src/f_op/f_op_msg_mng.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2026-07-22 12:36:48 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2026-07-22 12:36:48 -0400
commit5c556d3c5356c2cc9ce93688902c62e7a7f47811 (patch)
tree608dd87c0ec238896ac96226eabee60c054b496c /src/f_op/f_op_msg_mng.cpp
parentebc8cd2caf8a948c6f730a171cc3e88416cad1cb (diff)
Enum usage
Diffstat (limited to 'src/f_op/f_op_msg_mng.cpp')
-rw-r--r--src/f_op/f_op_msg_mng.cpp32
1 files changed, 19 insertions, 13 deletions
diff --git a/src/f_op/f_op_msg_mng.cpp b/src/f_op/f_op_msg_mng.cpp
index 03a12906..d20dbab1 100644
--- a/src/f_op/f_op_msg_mng.cpp
+++ b/src/f_op/f_op_msg_mng.cpp
@@ -1630,7 +1630,7 @@ fopMsgM_msgDataProc_c::fopMsgM_msgDataProc_c() {
field_0x292 = 0;
field_0x291 = 0;
field_0x290 = 0;
- mesgStatus = 6;
+ mesgStatus = fopMsgStts_MSG_TYPING_e;
field_0x27D = 0;
field_0x27E = 0;
field_0x27F = 0;
@@ -1715,7 +1715,7 @@ void fopMsgM_msgDataProc_c::dataInit() {
field_0x292 = 0;
field_0x291 = 0;
field_0x290 = 0;
- mesgStatus = 6;
+ mesgStatus = fopMsgStts_MSG_TYPING_e;
field_0x27D = 0;
field_0x27E = 0;
field_0x27F = 0;
@@ -2069,7 +2069,7 @@ void fopMsgM_msgDataProc_c::stringSet() {
field_0x64 = field_0x44;
field_0x68 = field_0x48;
field_0x6C = field_0x4C;
- mesgStatus = 6;
+ mesgStatus = fopMsgStts_MSG_TYPING_e;
if (bmgData[count] == '\0') {
if (field_0x27E != 0) {
@@ -2086,7 +2086,10 @@ void fopMsgM_msgDataProc_c::stringSet() {
strcat(field_0x64, field_0x70);
strcat(field_0x6C, field_0x70);
}
- if (mesgStatus != 8 && mesgStatus != 9 && mesgStatus != 0x14 && mesgStatus != 0x15) {
+ if (
+ mesgStatus != fopMsgStts_SELECT_2_e && mesgStatus != fopMsgStts_SELECT_3_e &&
+ mesgStatus != fopMsgStts_SELECT_YOKO_e && mesgStatus != fopMsgStts_INPUT_e
+ ) {
if (mesgEntry->mTextboxType != 2 && mesgEntry->mTextboxType != 6 && mesgEntry->mTextboxType != 7 && mesgEntry->mTextboxType != 0xB &&
mesgEntry->mTextboxType != 5 && mesgEntry->mTextboxType != 0xD && mesgEntry->mTextboxType != 9)
{
@@ -2100,15 +2103,15 @@ void fopMsgM_msgDataProc_c::stringSet() {
if (fopMsgM_nextMsgFlagCheck()) {
if (mesgEntry->mNextMsgNo != 0) {
fopMsgM_messageSet(mesgEntry->mNextMsgNo);
- mesgStatus = 0xF;
+ mesgStatus = fopMsgStts_MSG_CONTINUES_e;
} else {
- mesgStatus = 0x10;
+ mesgStatus = fopMsgStts_MSG_ENDS_e;
}
} else {
if (getAutoSendFlag() || getHandSendFlag()) {
- mesgStatus = 0xA;
+ mesgStatus = fopMsgStts_CLOSE_WAIT_e;
} else {
- mesgStatus = 0xE;
+ mesgStatus = fopMsgStts_MSG_DISPLAYED_e;
}
}
}
@@ -2138,7 +2141,10 @@ void fopMsgM_msgDataProc_c::stringSet() {
strcat(field_0x6C, field_0x70);
}
- if (mesgStatus == 8 || mesgStatus == 9 || mesgStatus == 0x14 || mesgStatus == 0x15) {
+ if (
+ mesgStatus == fopMsgStts_SELECT_2_e || mesgStatus == fopMsgStts_SELECT_3_e ||
+ mesgStatus == fopMsgStts_SELECT_YOKO_e || mesgStatus == fopMsgStts_INPUT_e
+ ) {
return;
}
@@ -2155,15 +2161,15 @@ void fopMsgM_msgDataProc_c::stringSet() {
if (fopMsgM_nextMsgFlagCheck()) {
if (mesgEntry->mNextMsgNo != 0) {
fopMsgM_messageSet(mesgEntry->mNextMsgNo);
- mesgStatus = 0xF;
+ mesgStatus = fopMsgStts_MSG_CONTINUES_e;
} else {
- mesgStatus = 0x10;
+ mesgStatus = fopMsgStts_MSG_ENDS_e;
}
} else {
if (getAutoSendFlag() || getHandSendFlag()) {
- mesgStatus = 0xA;
+ mesgStatus = fopMsgStts_CLOSE_WAIT_e;
} else {
- mesgStatus = 0xE;
+ mesgStatus = fopMsgStts_MSG_DISPLAYED_e;
}
}
}