src/game.c

changeset 43
12141136a0da
parent 42
21cb830efe91
child 44
1891d88cbd10
equal deleted inserted replaced
42:21cb830efe91 43:12141136a0da
354 printw("\rCannot perform asynchronous network IO"); 354 printw("\rCannot perform asynchronous network IO");
355 cbreak(); getch(); 355 cbreak(); getch();
356 exit(EXIT_FAILURE); 356 exit(EXIT_FAILURE);
357 } 357 }
358 if (result > 0) { 358 if (result > 0) {
359 uint32_t code = net_recieve_code(opponent); 359 uint8_t code = net_recieve_code(opponent);
360 360
361 Move move; 361 Move move;
362 switch (code) { 362 switch (code) {
363 case NETCODE_TIMEOVER: 363 case NETCODE_TIMEOVER:
364 printw("\rYour opponent's time ran out - you win!"); 364 printw("\rYour opponent's time ran out - you win!");

mercurial