Fix arkanoid bug

This commit is contained in:
MX 2022-12-30 23:31:21 +03:00
parent 6b30dc5114
commit a35b536120
No known key found for this signature in database
GPG Key ID: 6C4C311DFD4B4AB5
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@
* CI/CD: Builds with extra apps pack included, see new option below * CI/CD: Builds with extra apps pack included, see new option below
* SubGHz: Allow manual creation of Nice Flor S, Nice Smilo * SubGHz: Allow manual creation of Nice Flor S, Nice Smilo
* LF RFID: Allow removing password from T5577 to make it operational (PR #225 | by @TQMatvey & Tobirg (grvpvl)) * LF RFID: Allow removing password from T5577 to make it operational (PR #225 | by @TQMatvey & Tobirg (grvpvl))
* Plugins -> Arkanoid: Fix bug with unability to continue game after first level
* Plugins -> Morse Code: Fixed crashes, fixed known issues (PR #249 | by @gid9798) * Plugins -> Morse Code: Fixed crashes, fixed known issues (PR #249 | by @gid9798)
* Plugins -> USB Keyboard & Mouse: Added ESCAPE key (PR #243 | by @huuck) * Plugins -> USB Keyboard & Mouse: Added ESCAPE key (PR #243 | by @huuck)
* Plugins -> SubGHz Bruteforcer: Add holtek HT12X protocol support * Plugins -> SubGHz Bruteforcer: Add holtek HT12X protocol support

View File

@ -276,6 +276,7 @@ void reset_level(Canvas* canvas, ArkanoidState* arkanoid_state) {
arkanoid_state->ball_state.yb = 60; arkanoid_state->ball_state.yb = 60;
arkanoid_state->brickCount = 0; arkanoid_state->brickCount = 0;
arkanoid_state->ball_state.released = false; arkanoid_state->ball_state.released = false;
arkanoid_state->gameStarted = false;
// Reset all brick hit states // Reset all brick hit states
for(unsigned int row = 0; row < arkanoid_state->ROWS; row++) { for(unsigned int row = 0; row < arkanoid_state->ROWS; row++) {