diff options
| author | Atsutane <atsutane@freethoughts.de> | 2009-05-07 12:14:01 +0200 |
|---|---|---|
| committer | Atsutane <atsutane@freethoughts.de> | 2009-05-07 12:14:01 +0200 |
| commit | db06e7686a2a567d61a007b65be7890d5fba3b77 (patch) | |
| tree | 659ae3e27deebbdabadc5b6c8fbd03d5191bd3ef /src/pong.c | |
| parent | 264079b257ca3a32cafc5c8f1510b4a3360fbb1e (diff) | |
| download | pong-db06e7686a2a567d61a007b65be7890d5fba3b77.tar.gz pong-db06e7686a2a567d61a007b65be7890d5fba3b77.tar.bz2 | |
Fixed some rendering bugs.
Diffstat (limited to 'src/pong.c')
| -rw-r--r-- | src/pong.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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(); |
