about summary refs log tree commit diff stats
path: root/src/title.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/title.c')
-rw-r--r--src/title.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/title.c b/src/title.c
index 56e382c..c73fb10 100644
--- a/src/title.c
+++ b/src/title.c
@@ -1,4 +1,5 @@
 #include "pong.h"
+#include "raylib.h"
 
 void help_text() {
 
@@ -39,10 +40,13 @@ int title_screen() {
         if (CheckCollisionRecs(Mouse, Versus)) {
             Selected = &Versus;
             if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT)) {
-                return 0; 
+                return(0); 
             }
         } else if (CheckCollisionRecs(Mouse, Marathon)) {
             Selected = &Marathon;
+            if (IsMouseButtonPressed(MOUSE_BUTTON_LEFT)) {
+                return(1);
+            }
         } else if (CheckCollisionRecs(Mouse, Settings)) {
             Selected = &Settings;
         } else if (CheckCollisionRecs(Mouse, Help)) {