From 264079b257ca3a32cafc5c8f1510b4a3360fbb1e Mon Sep 17 00:00:00 2001 From: Atsutane Date: Thu, 7 May 2009 11:43:10 +0200 Subject: Some small fixes. --- src/pong.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pong.c b/src/pong.c index b2efba6..6d90e00 100644 --- a/src/pong.c +++ b/src/pong.c @@ -184,8 +184,8 @@ void ball_movement(struct game_data *gd) { /* Clear current position of the ball */ mvaddch(gd->ball->y, gd->ball->x, ' '); - /* If the Terminal was resized, place ball to - * the center of the Terminal. + /* If the terminal was resized, place ball to + * the center of the terminal. */ if (check_field_size(gd) == FALSE) { gd->ball->y = gd->max_field_y / 2; @@ -361,7 +361,7 @@ void p2_ai(struct game_data *gd) { /* Correct the position if the size of the terminal was changed */ gd->p2->x = gd->max_field_x; - while(gd->p2->y+2 > gd->max_field_y-1) { + while ((gd->p2->y+3) > (gd->max_field_y-1)) { gd->p2->y--; } @@ -437,7 +437,7 @@ int game(void) { /* Correct the position if the size of * the terminal was changed. */ - while((gd->p1->y+2) > (gd->max_field_y-1)) { + while((gd->p1->y+3) > (gd->max_field_y-1)) { gd->p1->y--; } -- cgit v1.2.3-70-g09d2