aboutsummaryrefslogtreecommitdiff
path: root/src/pong.c
diff options
context:
space:
mode:
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.