From d75d701780fb6050153ac522d83706753eadc653 Mon Sep 17 00:00:00 2001 From: Atsutane Date: Tue, 5 May 2009 22:01:18 +0200 Subject: game(): Fixed a major bug...if you name variables similar to functions reread your code twice before taking the next step... --- src/pong.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/pong.c b/src/pong.c index 5cf672c..8981c14 100644 --- a/src/pong.c +++ b/src/pong.c @@ -382,7 +382,7 @@ int game(void) { while ((gd->p1->score != 21) && (gd->p2->score != 21)) { - if (clocks > clocks + interval) { + if (clock() > clocks + interval) { if (p == 3) { /* Input Handling for P1 goes here. -- cgit v1.2.3-70-g09d2