| 404 uint8_t code = net_recieve_code(opponent); |
404 uint8_t code = net_recieve_code(opponent); |
| 405 |
405 |
| 406 Move move; |
406 Move move; |
| 407 switch (code) { |
407 switch (code) { |
| 408 case NETCODE_TIMEOVER: |
408 case NETCODE_TIMEOVER: |
| 409 printw("\rYour opponent's time ran out - you win!"); |
409 /* redraw the time control */ |
| 410 clrtoeol(); |
410 timecontrol(gamestate, gameinfo); |
| 411 return 1; |
411 return 1; |
| 412 case NETCODE_RESIGN: |
412 case NETCODE_RESIGN: |
| 413 gamestate->resign = 1; |
413 gamestate->resign = 1; |
| 414 printw("\rYour opponent resigned!"); |
414 printw("\rYour opponent resigned!"); |
| 415 clrtoeol(); |
415 clrtoeol(); |