aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAtsutane <atsutane@freethoughts.de>2009-05-07 11:43:10 +0200
committerAtsutane <atsutane@freethoughts.de>2009-05-07 11:43:10 +0200
commit264079b257ca3a32cafc5c8f1510b4a3360fbb1e (patch)
treebb77bc6ade7127089e78a0cc1d03dc713377484f /src
parentb592632f073e6cabae007a35ee9a86f6bb2d1634 (diff)
downloadpong-264079b257ca3a32cafc5c8f1510b4a3360fbb1e.tar.gz
pong-264079b257ca3a32cafc5c8f1510b4a3360fbb1e.tar.bz2
Some small fixes.
Diffstat (limited to 'src')
-rw-r--r--src/pong.c8
1 files 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--;
}