diff options
author | scratko <m@scratko.xyz> | 2024-08-18 01:33:08 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-08-18 01:33:08 +0300 |
commit | 9970a2275a56d7835ba0c12a8586dc25cf7ec1cf (patch) | |
tree | 914b9353b2df1ba9dec5481fa3e7e6a8462dea5d /server/server.h | |
parent | 4b2fdc91d42a438193d15840e10851c3847fbe80 (diff) | |
download | durak-9970a2275a56d7835ba0c12a8586dc25cf7ec1cf.tar.gz durak-9970a2275a56d7835ba0c12a8586dc25cf7ec1cf.tar.bz2 durak-9970a2275a56d7835ba0c12a8586dc25cf7ec1cf.zip |
Global fixes v4.0
Removed unnecessary comments.
Added resource cleanup for client and server.
Changed queue display.
Added player indicator.
It's possible to quit the game while typing or waiting for a connection.
Fixed a bug with determining the limit of card tossing.
Diffstat (limited to 'server/server.h')
-rw-r--r-- | server/server.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/server.h b/server/server.h index 5f7ffcc..552f899 100644 --- a/server/server.h +++ b/server/server.h @@ -47,10 +47,11 @@ enum client_game_states { }; enum tossing_mode { + none, cancel, answer_wait, answer_got, - none + anwer_got_with_limit, }; enum spectator_mode { @@ -94,7 +95,6 @@ struct server { struct session **sess_arr; int max_sess_arr_size; int connected_players_counter; - /* TODO: make static allocation memory */ const char **shuffled_deck; int shuffled_deck_size; const char *trump_suit; |