From 82e19e075cdfb79d3ff11c424e3544af0ae78e35 Mon Sep 17 00:00:00 2001 From: NetherEran Date: Thu, 10 Sep 2020 12:16:00 +0200 Subject: [PATCH] made yellow ball actually faster than blue ball --- ball.c | 2 +- game.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ball.c b/ball.c index a12a486..c279d6d 100644 --- a/ball.c +++ b/ball.c @@ -111,7 +111,7 @@ void move_balls(FIELD* f) { for (int i = 0; i < f -> ball_count; i++) { BALL* b = f -> balls[i]; b -> move_tick += (b -> value * b -> value); - if (b -> move_tick > 17) { + if (b -> move_tick > 15) { b -> move_tick = 0; move_ball(f, i); } diff --git a/game.c b/game.c index 6ebaa5b..ae4690b 100644 --- a/game.c +++ b/game.c @@ -51,7 +51,7 @@ void play_game(GAME_STATE* state) { fd_set inputs, test_fds; struct timeval timeout; timeout.tv_sec = 0; - timeout.tv_usec = 50000; + timeout.tv_usec = 56667; FD_ZERO(&inputs); FD_SET(0, &inputs);