back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/server/server_game_process.h
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-08-14 02:35:56 +0300
committerscratko <m@scratko.xyz>2024-08-14 02:35:56 +0300
commit880b8be2c28d761505b2eecc1386919d5add6f2f (patch)
tree63e965c3f82bcd09bb07baf9b669a736293dddc7 /server/server_game_process.h
parenta2d696dea797faaa3157046c8ae89cd70e965bff (diff)
downloaddurak-880b8be2c28d761505b2eecc1386919d5add6f2f.tar.gz
durak-880b8be2c28d761505b2eecc1386919d5add6f2f.tar.bz2
durak-880b8be2c28d761505b2eecc1386919d5add6f2f.zip
Global fixes v1.0
Defense hint now only takes into account unbeaten cards. The client accounts for sticky data in one packet via TCP. Changed delimiter when sending data related to cards on the table and the queue (from '0' to '='). Accepting cards from a client (verification_client_input.c) is heavily patched. Cards are taken from the stack at the hint's prompt. Added pop_stack(). The trump card is retrieved from the end of the array. Changed the check of the defender's ability to beat all cards.
Diffstat (limited to 'server/server_game_process.h')
-rw-r--r--server/server_game_process.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/server_game_process.h b/server/server_game_process.h
index 8891a56..9338c25 100644
--- a/server/server_game_process.h
+++ b/server/server_game_process.h
@@ -75,4 +75,6 @@ int check_all_answers_were_received(const struct session **turn_queue,
int is_receiving_cards_limit(const struct cards_on_table *cot,
player_cards defense_deck,
const struct card_queue *cq);
+void clear_defense_lost_status(struct session *defender);
+
#endif