From 6e0b7f83943a3a15a0b4e90c8c91c761bd70c254 Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Thu, 11 Apr 2024 13:26:18 -0400 Subject: [PATCH] Updated include path, and set the type if the game mode is M_SINGLE --- main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index a26440d..e24900b 100644 --- a/main.cpp +++ b/main.cpp @@ -34,7 +34,7 @@ #include "includes/check_input.hpp" #include "includes/display_text.hpp" #include "includes/easysock.h" -#include "subprojects/raylib-serialization/includes/serialization.h" +#include "netpong-serialization/includes/serialization.h" #include "includes/timer.h" /* Global variables used to instantiate structs */ @@ -215,6 +215,9 @@ int main(int argc, char** argv) { /* Single player mode */ if (selected_item == M_SINGLE) { + type.mode = M_SINGLE; + type.netsock = NULL; + GuiSetStyle(DEFAULT, TEXT_WRAP_MODE, TEXT_WRAP_WORD); // Enable text wrapping so that the long text, displayed below, will be wrapped BeginDrawing(); ClearBackground(BLACK);