Skip to content

Commit

Permalink
Fix debug action SelectShiny tInput value toggle (rh-hideout#3930)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcowley authored Jan 5, 2024
1 parent 48c26f7 commit 9c07718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -3279,7 +3279,7 @@ static void DebugAction_Give_Pokemon_SelectShiny(u8 taskId)
if (JOY_NEW(DPAD_ANY))
{
PlaySE(SE_SELECT);
gTasks[taskId].tInput ^= JOY_NEW(DPAD_UP | DPAD_DOWN);
gTasks[taskId].tInput ^= JOY_NEW(DPAD_UP | DPAD_DOWN) > 0;
txtStr = (gTasks[taskId].tInput == TRUE) ? sDebugText_True : sDebugText_False;
StringCopyPadded(gStringVar2, txtStr, CHAR_SPACE, 15);
ConvertIntToDecimalStringN(gStringVar3, gTasks[taskId].tInput, STR_CONV_MODE_LEADING_ZEROS, 0);
Expand Down

0 comments on commit 9c07718

Please sign in to comment.