aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAtsutane <atsutane@freethoughts.de>2009-05-07 12:14:01 +0200
committerAtsutane <atsutane@freethoughts.de>2009-05-07 12:14:01 +0200
commitdb06e7686a2a567d61a007b65be7890d5fba3b77 (patch)
tree659ae3e27deebbdabadc5b6c8fbd03d5191bd3ef /src
parent264079b257ca3a32cafc5c8f1510b4a3360fbb1e (diff)
downloadpong-db06e7686a2a567d61a007b65be7890d5fba3b77.tar.gz
pong-db06e7686a2a567d61a007b65be7890d5fba3b77.tar.bz2
Fixed some rendering bugs.
Diffstat (limited to 'src')
-rw-r--r--src/pong.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/pong.c b/src/pong.c
index 6d90e00..bd30bb0 100644
--- a/src/pong.c
+++ b/src/pong.c
@@ -337,11 +337,6 @@ void ball_launch(struct game_data *gd) {
}
else {
p->y += rand()%3 - 1;
- mvaddch(p->y-2, 0, '|');
- mvaddch(p->y-1, 0, '|');
- mvaddch(p->y, 0, '|');
- mvaddch(p->y+1, 0, '|');
- mvaddch(p->y+2, 0, '|');
}
}
@@ -510,7 +505,7 @@ int main(void) {
winner = game();
clear();
getmaxyx(stdscr, y, x);
- mvprintw(y/2, x/3, "Player %d wins.", winner);
+ mvprintw(y/2, (x/2)-7, "Player %d wins.", winner);
timeout(-1); /* Set delay to blocking */
getch();