Updated include path, and set the type if the game mode is M_SINGLE

master
Aadhavan Srinivasan 9 months ago
parent 4b7880349d
commit 6e0b7f8394

@ -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);

Loading…
Cancel
Save