Skip to content

Commit

Permalink
fix: double click in player attack
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoDornelles committed Nov 1, 2023
1 parent 8fa8f5b commit 437c2da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ static void game_move()
else if(gamepad[i] & PAD_DOWN) {
player.y += speed;
}
if ((gamepad[i] ^ gamepad_old[i]) & PAD_A && player.framedata == 0) {
if ((~gamepad_old[i] & gamepad[i] & PAD_A) && player.framedata == 0) {
player.framedata = FRAME_PREPARE;
player.info.status.attacking = 1;
}
Expand Down

0 comments on commit 437c2da

Please sign in to comment.