src/client.c

changeset 64
4eda5df55f86
parent 59
3fa1de896666
equal deleted inserted replaced
63:611332453da0 64:4eda5df55f86
73 return 1; 73 return 1;
74 } 74 }
75 75
76 uint8_t code = net_recieve_code(server.fd); 76 uint8_t code = net_recieve_code(server.fd);
77 if (code == NETCODE_GAMEINFO) { 77 if (code == NETCODE_GAMEINFO) {
78 // Start new game 78 /* Start new game */
79 net_recieve_data(server.fd, &(settings->gameinfo), sizeof(GameInfo)); 79 net_recieve_data(server.fd, &(settings->gameinfo), sizeof(GameInfo));
80 dump_gameinfo(&(settings->gameinfo)); 80 dump_gameinfo(&(settings->gameinfo));
81 if (prompt_yesno("Accept challenge")) { 81 if (prompt_yesno("Accept challenge")) {
82 net_send_code(server.fd, NETCODE_ACCEPT); 82 net_send_code(server.fd, NETCODE_ACCEPT);
83 game_start(settings, server.fd); 83 game_start(settings, server.fd);

mercurial