33:866025982aa9 | 34:c4d4b8a8f902 |
---|---|
163 "Example: -t 150s\n" | 163 "Example: -t 150s\n" |
164 ); | 164 ); |
165 return EXIT_SUCCESS; | 165 return EXIT_SUCCESS; |
166 } | 166 } |
167 initscr(); | 167 initscr(); |
168 halfdelay(10); | 168 halfdelay(1); |
169 keypad(stdscr, TRUE); | 169 keypad(stdscr, TRUE); |
170 if (has_colors()) { | 170 if (has_colors()) { |
171 start_color(); | 171 start_color(); |
172 init_colorpairs(); | 172 init_colorpairs(); |
173 bkgd(COLOR_PAIR(COL_YB)); | 173 bkgd(COLOR_PAIR(COL_YB)); |
179 atexit(leavescr); | 179 atexit(leavescr); |
180 | 180 |
181 if (settings.singlemachine) { | 181 if (settings.singlemachine) { |
182 game_start_singlemachine(&settings); | 182 game_start_singlemachine(&settings); |
183 } else { | 183 } else { |
184 return is_server(&settings) ? | 184 int exitcode = is_server(&settings) ? |
185 server_run(&settings) : client_run(&settings); | 185 server_run(&settings) : client_run(&settings); |
186 | |
187 if (exitcode != EXIT_SUCCESS) { | |
188 cbreak(); getch(); | |
189 } | |
186 } | 190 } |
187 } | 191 } |
188 | 192 |