Compare commits
2 Commits
5541aeb799
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 4dbe11ccf9 | |||
| 6fbbdedebe |
2
Makefile
2
Makefile
@@ -1,7 +1,7 @@
|
|||||||
# Compiler and flags
|
# Compiler and flags
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -Wall -g
|
CFLAGS = -Wall -g
|
||||||
LIBS = -lncurses
|
LIBS = -lncurses -lm
|
||||||
|
|
||||||
# Source files
|
# Source files
|
||||||
NETPONG_SRC = main.c $(wildcard src/*.c) $(wildcard src/network/*.c)
|
NETPONG_SRC = main.c $(wildcard src/*.c) $(wildcard src/network/*.c)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include "network/networking.h"
|
#include "network/networking.h"
|
||||||
|
|
||||||
#define NUM_OF_BALLS 2
|
#define NUM_OF_BALLS 6
|
||||||
|
|
||||||
|
|
||||||
// Setup game board
|
// Setup game board
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
#include <signal.h>
|
||||||
|
|
||||||
|
|
||||||
static Server *g_server = NULL;
|
static Server *g_server = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user