mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
@@ -23,7 +23,8 @@ typedef enum {
|
||||
} AButtonState;
|
||||
|
||||
typedef enum {
|
||||
/* 0x00 */ DO_ACTION_ATTACK,
|
||||
/* -1 */ DO_ACTION_UNDEFINED = -1, // #Region [2s2h] DO_ACTION_UNDEFINED added so comparisons between the enum type and -1 would work on all systems
|
||||
/* 0x00 */ DO_ACTION_ATTACK = 0,
|
||||
/* 0x01 */ DO_ACTION_CHECK,
|
||||
/* 0x02 */ DO_ACTION_ENTER,
|
||||
/* 0x03 */ DO_ACTION_RETURN,
|
||||
|
||||
@@ -10955,7 +10955,7 @@ void Player_SetDoAction(PlayState* play, Player* this) {
|
||||
return;
|
||||
}
|
||||
|
||||
doActionB = -1;
|
||||
doActionB = DO_ACTION_UNDEFINED;
|
||||
sp38 = func_801242B4(this) || (Player_Action_28 == this->actionFunc);
|
||||
|
||||
// Set B do action
|
||||
@@ -10986,7 +10986,7 @@ void Player_SetDoAction(PlayState* play, Player* this) {
|
||||
}
|
||||
}
|
||||
|
||||
if (doActionB > -1) {
|
||||
if (doActionB > DO_ACTION_UNDEFINED) {
|
||||
Interface_SetBButtonDoAction(play, doActionB);
|
||||
} else if (play->interfaceCtx.bButtonDoActionActive) {
|
||||
play->interfaceCtx.bButtonDoActionActive = false;
|
||||
|
||||
Reference in New Issue
Block a user