removed logger

This commit is contained in:
Rorikstr | Rust Dev 2025-09-29 23:51:56 +03:00
parent 4d17a14835
commit f071558a0f
2 changed files with 3 additions and 8 deletions

View file

@ -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..."

View file

@ -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;
}
}