From fac5e3de0929c3abb73da552efbda6d641136588 Mon Sep 17 00:00:00 2001 From: Mario Kilies Date: Sun, 16 Jan 2011 07:57:28 +0100 Subject: Simplified net_recv(). Refactored 'hand' from array definition to hand_t struct definition. --- src/main.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 6e68d35..9f0bb65 100644 --- a/src/main.c +++ b/src/main.c @@ -1,5 +1,7 @@ #include #include +#include +#include #include "ui.h" #include "game.h" #include "net.h" @@ -22,9 +24,9 @@ int main(int argc, char **argv) int ssock; int* csocks; player_list players; - int opponents = 3; + int opponents = 1; const char* nickname = "deki"; - const hand testhand = { 12, 23, 35, 42, 55, 57, 70, 81, 103, 0 }; + const hand_t testhand = { { 12, 23, 35, 42, 55, 57, 70, 81, 103, 0 } }; servermode = true; port = argv[1]; @@ -51,7 +53,7 @@ int main(int argc, char **argv) // send test hand for(int i=0; icards[i]); printf("\n"); // cleanup -- cgit v1.2.3