c23 standard switch case issues

This commit is contained in:
Rorikstr | Rust Dev 2025-09-29 23:24:32 +03:00
parent 5ed3450d6f
commit cbf4f6bdcd
2 changed files with 2 additions and 3 deletions

View file

@ -6,7 +6,7 @@ void do_moving(void) {
switch (state->moving_type) {
case LeftDown:
case RightDown:
case Rotate:
case (Rotate): {
Figure_t old = state->curr;
switch (state->moving_type) {
case LeftDown:
@ -30,7 +30,7 @@ void do_moving(void) {
}
state->state = Move;
break;
}
case ToDown:
while (!check_collision()) {
state->curr.y++;

View file

@ -1,5 +1,4 @@
#include <ncurses.h>
#include <time.h>
#include <unistd.h>
#include "../../brick_game/tetris/00_tetris.h"