… | |
… | |
384 | LOG (llevDebug, "cleanup done.\n"); |
384 | LOG (llevDebug, "cleanup done.\n"); |
385 | |
385 | |
386 | log_cleanup (); |
386 | log_cleanup (); |
387 | |
387 | |
388 | if (make_core) |
388 | if (make_core) |
389 | { |
|
|
390 | cleanup_inform (cause, make_core); |
389 | cleanup_inform (cause, make_core); |
391 | cfperl_cleanup (make_core); |
|
|
392 | _exit (1); |
|
|
393 | } |
|
|
394 | else |
390 | else |
395 | { |
391 | { |
396 | new_draw_info_format (NDI_REPLY | NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "Maps and players successfully saved, exiting."); |
392 | new_draw_info_format (NDI_REPLY | NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "Maps and players successfully saved, exiting."); |
397 | new_draw_info_format (NDI_REPLY | NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "And again: " CLEANUP_MESSAGE); |
393 | new_draw_info_format (NDI_REPLY | NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "And again: " CLEANUP_MESSAGE); |
398 | client::flush_sockets (); |
394 | client::flush_sockets (); |
|
|
395 | } |
|
|
396 | |
399 | cfperl_cleanup (make_core); |
397 | cfperl_cleanup (make_core); |
400 | _exit (0); |
398 | _exit (make_core); |
401 | } |
|
|
402 | } |
399 | } |
403 | |
400 | |
404 | /* |
401 | /* |
405 | * do_specials() is a collection of functions to call from time to time. |
402 | * do_specials() is a collection of functions to call from time to time. |
406 | * Modified 2000-1-14 MSW to use the global pticks count to determine how |
403 | * Modified 2000-1-14 MSW to use the global pticks count to determine how |