From b4b784928cbec4a93c71f3ca1e37a14397929edb Mon Sep 17 00:00:00 2001 From: scratko Date: Sun, 18 Aug 2024 22:24:30 +0300 Subject: 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). --- client/Makefile | 2 +- client/client.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'client') 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 -- cgit v1.2.3