mirror of
https://github.com/zeldaret/tww.git
synced 2026-09-02 09:51:47 -04:00
fix daPy_npc_c::setRestart regression
This commit is contained in:
@@ -146,11 +146,11 @@ public:
|
||||
void onCondition(u16 cond) { mCondition |= cond; }
|
||||
void offCondition(u16 cond) { mCondition &= ~cond; }
|
||||
|
||||
bool checkCommandTalk() { return mCommand == dEvtCmd_INTALK_e; }
|
||||
bool checkCommandItem() { return mCommand == dEvtCmd_INGETITEM_e; }
|
||||
bool checkCommandDoor() { return mCommand == dEvtCmd_INDOOR_e; }
|
||||
bool checkCommandDemoAccrpt() { return mCommand == dEvtCmd_INDEMO_e; }
|
||||
bool checkCommandCatch() { return mCommand == dEvtCmd_INCATCH_e; }
|
||||
BOOL checkCommandTalk() { return mCommand == dEvtCmd_INTALK_e; }
|
||||
BOOL checkCommandItem() { return mCommand == dEvtCmd_INGETITEM_e; }
|
||||
BOOL checkCommandDoor() { return mCommand == dEvtCmd_INDOOR_e; }
|
||||
BOOL checkCommandDemoAccrpt() { return mCommand == dEvtCmd_INDEMO_e; }
|
||||
BOOL checkCommandCatch() { return mCommand == dEvtCmd_INCATCH_e; }
|
||||
|
||||
/* 0x04 */ u16 mCommand;
|
||||
/* 0x06 */ u16 mCondition;
|
||||
|
||||
@@ -817,7 +817,7 @@ int daObjMknjD::Act_c::Execute(Mtx** i_mtx) {
|
||||
case 0:
|
||||
mEvtInfo.onCondition(1);
|
||||
|
||||
if (mEvtInfo.checkCommandTalk() == true) {
|
||||
if (mEvtInfo.checkCommandTalk()) {
|
||||
m0500 = 1;
|
||||
m043F = 0x0B;
|
||||
}
|
||||
@@ -943,7 +943,7 @@ int daObjMknjD::Act_c::Execute(Mtx** i_mtx) {
|
||||
mEvtInfo.onCondition(1);
|
||||
mEvtInfo.onCondition(32);
|
||||
|
||||
if (mEvtInfo.checkCommandTalk() == true) {
|
||||
if (mEvtInfo.checkCommandTalk()) {
|
||||
if (dComIfGp_event_chkTalkXY()) {
|
||||
m0500 = 0;
|
||||
m043F = 9;
|
||||
|
||||
@@ -50,7 +50,6 @@ BOOL daPy_npc_c::check_moveStop() {
|
||||
|
||||
/* 8015A524-8015A590 .text setRestart__10daPy_npc_cFSc */
|
||||
void daPy_npc_c::setRestart(s8 option) {
|
||||
/* Nonmatching (this matched at some point, what broke it?) */
|
||||
if (option == dComIfGs_getRestartOption()) {
|
||||
bool playerInDoor = dComIfGp_getPlayer(0)->mEvtInfo.checkCommandDoor();
|
||||
s8 roomNo = current.roomNo;
|
||||
|
||||
Reference in New Issue
Block a user