aboutsummaryrefslogtreecommitdiff
path: root/src/pong.c
diff options
context:
space:
mode:
authorAtsutane <atsutane@freethoughts.de>2009-05-05 22:01:18 +0200
committerAtsutane <atsutane@freethoughts.de>2009-05-05 22:01:18 +0200
commitd75d701780fb6050153ac522d83706753eadc653 (patch)
tree6ff592ea0a7e0cb02b0235d303a837955964c7cc /src/pong.c
parentb34388d74a2311aad19aa4ad6562acca2c96d1ba (diff)
downloadpong-d75d701780fb6050153ac522d83706753eadc653.tar.gz
pong-d75d701780fb6050153ac522d83706753eadc653.tar.bz2
game(): Fixed a major bug...if you name variables similar to functions reread your code twice before taking the next step...
Diffstat (limited to 'src/pong.c')
-rw-r--r--src/pong.c2
1 files changed, 1 insertions, 1 deletions
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.