… | |
… | |
439 | new_draw_info_format (flags, 0, 0, "Cause for this shutdown: %s\n", cause); |
439 | new_draw_info_format (flags, 0, 0, "Cause for this shutdown: %s\n", cause); |
440 | |
440 | |
441 | if (make_core) |
441 | if (make_core) |
442 | new_draw_info_format (flags, 0, 0, "This is considered a crash, but all maps and players have been saved.\n"); |
442 | new_draw_info_format (flags, 0, 0, "This is considered a crash, but all maps and players have been saved.\n"); |
443 | else |
443 | else |
444 | new_draw_info_format (flags, 0, 0, "This is considered to be a clean shutdown, and all maps and players have been saved.\n"); |
444 | new_draw_info_format (flags, 0, 0, "This is considered to be a clean shutdown, and all maps and players will be saved now.\n"); |
445 | |
445 | |
446 | new_draw_info_format (flags, 0, 0, "%s\n", CLEANUP_MESSAGE); |
446 | new_draw_info_format (flags, 0, 0, "%s\n", CLEANUP_MESSAGE); |
447 | |
447 | |
448 | flush_sockets (); |
448 | flush_sockets (); |
449 | } |
449 | } |
… | |
… | |
479 | { |
479 | { |
480 | cleanup_inform (cause, make_core); |
480 | cleanup_inform (cause, make_core); |
481 | _exit (1); |
481 | _exit (1); |
482 | } |
482 | } |
483 | else |
483 | else |
|
|
484 | { |
|
|
485 | new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "Maps and players successfully saved, exiting.\n"); |
|
|
486 | new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "And again: " CLEANUP_MESSAGE "\n"); |
|
|
487 | flush_sockets (); |
484 | _exit (0); |
488 | _exit (0); |
|
|
489 | } |
485 | } |
490 | } |
486 | |
491 | |
487 | int |
492 | int |
488 | forbid_play (void) |
493 | forbid_play (void) |
489 | { |
494 | { |