back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-08-18 22:24:30 +0300
committerscratko <m@scratko.xyz>2024-08-18 22:24:30 +0300
commitb4b784928cbec4a93c71f3ca1e37a14397929edb (patch)
treeefb86b0a710f22337c3319bedc7870488801896f /client
parent9970a2275a56d7835ba0c12a8586dc25cf7ec1cf (diff)
downloaddurak-b4b784928cbec4a93c71f3ca1e37a14397929edb.tar.gz
durak-b4b784928cbec4a93c71f3ca1e37a14397929edb.tar.bz2
durak-b4b784928cbec4a93c71f3ca1e37a14397929edb.zip
Final version v1.0
Fixed stack clearing. Added check for NULL before clearing game parameters. Added refactoring of define_phase_after_attack(). Analyzing game results is organized into several functions. Fixed card limit detection on tossing (line 366 in server_data_processing.c).
Diffstat (limited to 'client')
-rw-r--r--client/Makefile2
-rw-r--r--client/client.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/client/Makefile b/client/Makefile
index 48e0d92..2e2ce88 100644
--- a/client/Makefile
+++ b/client/Makefile
@@ -2,7 +2,7 @@ SRCMODULES = card_handling.c card_stack.c data_decryption.c\
printing_game_frames.c verification_client_input.c client.c
OBJMODULES = $(SRCMODULES:.c=.o)
CC = gcc
-CFLAGS = -Wall -g -c -D DEBUG
+CFLAGS = -Wall -g -c
all: client
diff --git a/client/client.c b/client/client.c
index 66bfb01..dbe2bf1 100644
--- a/client/client.c
+++ b/client/client.c
@@ -33,7 +33,6 @@ static void get_data_from_server(struct client *cl, fd_set *readfds)
/* end of file -- closed connection (from server) */
if(!cl->data_left_in_buffer) {
clean_up_resources(cl);
- pgf_disconnect();
exit(0);
}
#ifdef DEBUG