| 340 printw("\nThe opponent sent an invalid network pacakge."); |
340 printw("\nThe opponent sent an invalid network pacakge."); |
| 341 } |
341 } |
| 342 |
342 |
| 343 /* read move */ |
343 /* read move */ |
| 344 if (use_premove || asyncgetnstr(movestr, &bufpos, MOVESTR_BUFLEN)) { |
344 if (use_premove || asyncgetnstr(movestr, &bufpos, MOVESTR_BUFLEN)) { |
| |
345 bool was_premove = use_premove; |
| 345 use_premove = false; |
346 use_premove = false; |
| 346 if (strncmp(movestr, "resign", MOVESTR_BUFLEN) == 0) { |
347 if (strncmp(movestr, "resign", MOVESTR_BUFLEN) == 0) { |
| 347 gamestate->resign = 1; |
348 gamestate->resign = 1; |
| 348 printw("You resigned!"); |
349 printw("You resigned!"); |
| 349 clrtoeol(); |
350 clrtoeol(); |