mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-26 03:12:18 -05:00
Disable Lens Effect On Unequip (#4432)
* Add logic to turn off lens effect when replacing it on a button with another item, but not swapping. * Swap to real fix for dpad equips bug, c/o Rozelette.
This commit is contained in:
parent
b5c6545d6f
commit
dba74f8805
@ -3692,7 +3692,7 @@ void Interface_UpdateMagicBar(PlayState* play) {
|
|||||||
(msgCtx->msgMode == MSGMODE_NONE) && (play->gameOverCtx.state == GAMEOVER_INACTIVE) &&
|
(msgCtx->msgMode == MSGMODE_NONE) && (play->gameOverCtx.state == GAMEOVER_INACTIVE) &&
|
||||||
(play->transitionTrigger == TRANS_TRIGGER_OFF) && (play->transitionMode == TRANS_MODE_OFF) && !Play_InCsMode(play)) {
|
(play->transitionTrigger == TRANS_TRIGGER_OFF) && (play->transitionMode == TRANS_MODE_OFF) && !Play_InCsMode(play)) {
|
||||||
bool hasLens = false;
|
bool hasLens = false;
|
||||||
for (int buttonIndex = 1; buttonIndex < (CVarGetInteger(CVAR_ENHANCEMENT("DpadEquips"), 0) != 0) ? ARRAY_COUNT(gSaveContext.equips.buttonItems) : 4;
|
for (int buttonIndex = 1; buttonIndex < ((CVarGetInteger(CVAR_ENHANCEMENT("DpadEquips"), 0) != 0) ? ARRAY_COUNT(gSaveContext.equips.buttonItems) : 4);
|
||||||
buttonIndex++) {
|
buttonIndex++) {
|
||||||
if (gSaveContext.equips.buttonItems[buttonIndex] == ITEM_LENS) {
|
if (gSaveContext.equips.buttonItems[buttonIndex] == ITEM_LENS) {
|
||||||
hasLens = true;
|
hasLens = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user