removed logger
This commit is contained in:
parent
4d17a14835
commit
f071558a0f
2 changed files with 3 additions and 8 deletions
|
|
@ -24,9 +24,7 @@ CLIDIR = gui/cli
|
||||||
|
|
||||||
# Файлы
|
# Файлы
|
||||||
TETRIS_SRC = $(shell find $(TETRISDIR) -name "*.c")
|
TETRIS_SRC = $(shell find $(TETRISDIR) -name "*.c")
|
||||||
LOGGING_SRC = logging.c
|
TETRIS_OBJ = $(TETRIS_SRC:.c=.o)
|
||||||
LOGGING_OBJ = logging.o
|
|
||||||
TETRIS_OBJ = $(TETRIS_SRC:.c=.o) $(LOGGING_OBJ)
|
|
||||||
CLI_SRC = $(shell find $(CLIDIR) -name "*.c")
|
CLI_SRC = $(shell find $(CLIDIR) -name "*.c")
|
||||||
CLI_OBJ = $(CLI_SRC:.c=.o)
|
CLI_OBJ = $(CLI_SRC:.c=.o)
|
||||||
|
|
||||||
|
|
@ -63,7 +61,7 @@ uninstall:
|
||||||
rm -f $(BINDIR)/$(TARGET)
|
rm -f $(BINDIR)/$(TARGET)
|
||||||
|
|
||||||
clean:
|
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:
|
test:
|
||||||
@echo "Running tests..."
|
@echo "Running tests..."
|
||||||
|
|
|
||||||
|
|
@ -54,8 +54,6 @@ void place_figure() {
|
||||||
void clear_lines() {
|
void clear_lines() {
|
||||||
|
|
||||||
GameState_t* state = get_game_state();
|
GameState_t* state = get_game_state();
|
||||||
int old_level = state->info->level;
|
|
||||||
int old_speed = state->info->speed;
|
|
||||||
|
|
||||||
int lines_cleared = 0;
|
int lines_cleared = 0;
|
||||||
|
|
||||||
|
|
@ -83,7 +81,6 @@ void clear_lines() {
|
||||||
|
|
||||||
if (lines_cleared > 0) {
|
if (lines_cleared > 0) {
|
||||||
int points[] = {0, 100, 300, 700, 1500};
|
int points[] = {0, 100, 300, 700, 1500};
|
||||||
int old_score = state->info->score;
|
|
||||||
state->info->score += points[lines_cleared];
|
state->info->score += points[lines_cleared];
|
||||||
if (state->info->score > state->info->high_score) {
|
if (state->info->score > state->info->high_score) {
|
||||||
state->info->high_score = state->info->score;
|
state->info->high_score = state->info->score;
|
||||||
|
|
@ -94,7 +91,7 @@ void clear_lines() {
|
||||||
if (new_level > state->info->level) {
|
if (new_level > state->info->level) {
|
||||||
state->info->level = new_level;
|
state->info->level = new_level;
|
||||||
|
|
||||||
state->info->speed += new_level * 5;
|
state->info->speed = new_level * 10;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue