diff options
author | scratko <m@scratko.xyz> | 2024-08-18 22:24:30 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-08-18 22:24:30 +0300 |
commit | b4b784928cbec4a93c71f3ca1e37a14397929edb (patch) | |
tree | efb86b0a710f22337c3319bedc7870488801896f /client | |
parent | 9970a2275a56d7835ba0c12a8586dc25cf7ec1cf (diff) | |
download | durak-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/Makefile | 2 | ||||
-rw-r--r-- | client/client.c | 1 |
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 |