1.1 --- a/src/main.c Wed Apr 09 11:12:04 2014 +0200 1.2 +++ b/src/main.c Wed Apr 09 12:07:47 2014 +0200 1.3 @@ -165,7 +165,7 @@ 1.4 return EXIT_SUCCESS; 1.5 } 1.6 initscr(); 1.7 - halfdelay(10); 1.8 + halfdelay(1); 1.9 keypad(stdscr, TRUE); 1.10 if (has_colors()) { 1.11 start_color(); 1.12 @@ -181,8 +181,12 @@ 1.13 if (settings.singlemachine) { 1.14 game_start_singlemachine(&settings); 1.15 } else { 1.16 - return is_server(&settings) ? 1.17 + int exitcode = is_server(&settings) ? 1.18 server_run(&settings) : client_run(&settings); 1.19 + 1.20 + if (exitcode != EXIT_SUCCESS) { 1.21 + cbreak(); getch(); 1.22 + } 1.23 } 1.24 } 1.25