diff --git a/src/Makefile b/src/Makefile index dcad6f0..146d89b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -24,9 +24,7 @@ CLIDIR = gui/cli # Файлы TETRIS_SRC = $(shell find $(TETRISDIR) -name "*.c") -LOGGING_SRC = logging.c -LOGGING_OBJ = logging.o -TETRIS_OBJ = $(TETRIS_SRC:.c=.o) $(LOGGING_OBJ) +TETRIS_OBJ = $(TETRIS_SRC:.c=.o) CLI_SRC = $(shell find $(CLIDIR) -name "*.c") CLI_OBJ = $(CLI_SRC:.c=.o) @@ -63,7 +61,7 @@ uninstall: rm -f $(BINDIR)/$(TARGET) clean: - rm -f $(CLI_OBJ) $(TETRIS_OBJ) $(TARGET) $(LIB_TETRIS) *.gcda *.gcno *.gcov tetris.log + rm -f $(CLI_OBJ) $(TETRIS_OBJ) $(TARGET) $(LIB_TETRIS) *.gcda *.gcno *.gcov test: @echo "Running tests..." diff --git a/src/brick_game/tetris/08_attaching.c b/src/brick_game/tetris/08_attaching.c index f03ff15..e0252e1 100644 --- a/src/brick_game/tetris/08_attaching.c +++ b/src/brick_game/tetris/08_attaching.c @@ -54,8 +54,6 @@ void place_figure() { void clear_lines() { GameState_t* state = get_game_state(); - int old_level = state->info->level; - int old_speed = state->info->speed; int lines_cleared = 0; @@ -83,7 +81,6 @@ void clear_lines() { if (lines_cleared > 0) { int points[] = {0, 100, 300, 700, 1500}; - int old_score = state->info->score; state->info->score += points[lines_cleared]; if (state->info->score > state->info->high_score) { state->info->high_score = state->info->score; @@ -94,7 +91,7 @@ void clear_lines() { if (new_level > state->info->level) { state->info->level = new_level; - state->info->speed += new_level * 5; + state->info->speed = new_level * 10; return; } }