mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-24 06:41:52 -05:00
fix dark link softlock (#5027)
This commit is contained in:
parent
0177690b54
commit
29cecd8502
@ -94,10 +94,19 @@ void RegisterAssignableTunicsBoots() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Input* input = va_arg(args, Input*);
|
Player* player = va_arg(args, Player*);
|
||||||
Player* player = GET_PLAYER(gPlayState);
|
|
||||||
|
// if we're not dealing with the actual player, we're probably
|
||||||
|
// dealing with dark link, don't do any tunics/boots stuff, just
|
||||||
|
// run the vanilla action func
|
||||||
|
if (player->actor.id != ACTOR_PLAYER) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
*should = false;
|
*should = false;
|
||||||
|
|
||||||
|
Input* input = va_arg(args, Input*);
|
||||||
|
|
||||||
player->actionFunc(player, gPlayState);
|
player->actionFunc(player, gPlayState);
|
||||||
UseTunicBoots(player, gPlayState, input);
|
UseTunicBoots(player, gPlayState, input);
|
||||||
});
|
});
|
||||||
|
@ -398,6 +398,7 @@ typedef enum {
|
|||||||
// !(this->stateFlags3 & PLAYER_STATE3_PAUSE_ACTION_FUNC)
|
// !(this->stateFlags3 & PLAYER_STATE3_PAUSE_ACTION_FUNC)
|
||||||
// ```
|
// ```
|
||||||
// #### `args`
|
// #### `args`
|
||||||
|
// - `*Player`
|
||||||
// - `*Input`
|
// - `*Input`
|
||||||
VB_EXECUTE_PLAYER_ACTION_FUNC,
|
VB_EXECUTE_PLAYER_ACTION_FUNC,
|
||||||
|
|
||||||
|
@ -12166,7 +12166,7 @@ void Player_UpdateCommon(Player* this, PlayState* play, Input* input) {
|
|||||||
sUseHeldItem = sHeldItemButtonIsHeldDown = 0;
|
sUseHeldItem = sHeldItemButtonIsHeldDown = 0;
|
||||||
sSavedCurrentMask = this->currentMask;
|
sSavedCurrentMask = this->currentMask;
|
||||||
|
|
||||||
if (GameInteractor_Should(VB_EXECUTE_PLAYER_ACTION_FUNC, !(this->stateFlags3 & PLAYER_STATE3_PAUSE_ACTION_FUNC), input)) {
|
if (GameInteractor_Should(VB_EXECUTE_PLAYER_ACTION_FUNC, !(this->stateFlags3 & PLAYER_STATE3_PAUSE_ACTION_FUNC), this, input)) {
|
||||||
this->actionFunc(this, play);
|
this->actionFunc(this, play);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user