mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-18 13:13:29 -04:00
Added enums for all used event/tmp bits/regs (#893)
This commit is contained in:
+8
-8
@@ -780,27 +780,27 @@ void dDoor_hkyo_c::proc(dDoor_info_c* door) {
|
||||
|
||||
switch (m11) {
|
||||
case 1:
|
||||
if (dComIfGs_isTmpBit(0x108))
|
||||
if (dComIfGs_isTmpBit(dSv_event_tmp_flag_c::UNK_0108))
|
||||
setAnm(1);
|
||||
else if (dComIfGs_isTmpBit(0x110))
|
||||
else if (dComIfGs_isTmpBit(dSv_event_tmp_flag_c::UNK_0110))
|
||||
setAnm(2);
|
||||
else
|
||||
setAnm(0);
|
||||
break;
|
||||
case 4:
|
||||
if (dComIfGs_isEventBit(0x1710))
|
||||
if (dComIfGs_isEventBit(dSv_event_flag_c::UNK_1710))
|
||||
setAnm(0);
|
||||
else
|
||||
setAnm(3);
|
||||
break;
|
||||
case 3:
|
||||
if (!dComIfGs_isTact(2) || dComIfGs_isEventBit(0x1704))
|
||||
if (!dComIfGs_isTact(2) || dComIfGs_isEventBit(dSv_event_flag_c::UNK_1704))
|
||||
setAnm(0);
|
||||
else
|
||||
setAnm(3);
|
||||
break;
|
||||
case 2:
|
||||
if (!dComIfGs_isEventBit(0x1704) || dComIfGs_isEventBit(0x1b01))
|
||||
if (!dComIfGs_isEventBit(dSv_event_flag_c::UNK_1704) || dComIfGs_isEventBit(dSv_event_flag_c::UNK_1B01))
|
||||
setAnm(0);
|
||||
else
|
||||
setAnm(3);
|
||||
@@ -823,7 +823,7 @@ BOOL dDoor_hkyo_c::chkFirst() {
|
||||
|
||||
switch (mAnmIdx) {
|
||||
case 1:
|
||||
if (!dComIfGs_isEventBit(0x2602))
|
||||
if (!dComIfGs_isEventBit(dSv_event_flag_c::UNK_2602))
|
||||
return TRUE;
|
||||
break;
|
||||
}
|
||||
@@ -834,8 +834,8 @@ BOOL dDoor_hkyo_c::chkFirst() {
|
||||
/* 8006D784-8006D7E8 .text onFirst__12dDoor_hkyo_cFv */
|
||||
void dDoor_hkyo_c::onFirst() {
|
||||
switch (mAnmIdx) {
|
||||
case 1: dComIfGs_onEventBit(0x2602); break;
|
||||
case 2: dComIfGs_onEventBit(0x2601); break;
|
||||
case 1: dComIfGs_onEventBit(dSv_event_flag_c::UNK_2602); break;
|
||||
case 2: dComIfGs_onEventBit(dSv_event_flag_c::UNK_2601); break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user