ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/main.C
(Generate patch)

Comparing deliantra/server/server/main.C (file contents):
Revision 1.110 by root, Tue Jun 5 13:05:02 2007 UTC vs.
Revision 1.111 by root, Sun Jun 24 04:09:29 2007 UTC

346static void 346static void
347cleanup_inform (const char *cause, bool make_core) 347cleanup_inform (const char *cause, bool make_core)
348{ 348{
349 int flags = NDI_UNIQUE | NDI_ALL | (make_core ? NDI_RED : NDI_GREEN); 349 int flags = NDI_UNIQUE | NDI_ALL | (make_core ? NDI_RED : NDI_GREEN);
350 350
351 new_draw_info_format (flags, 0, 0, "The server will now shutdown.\n"); 351 new_draw_info_format (flags, 0, 0, "The server will now shutdown.");
352 new_draw_info_format (flags, 0, 0, "Cause for this shutdown: %s\n", cause); 352 new_draw_info_format (flags, 0, 0, "Cause for this shutdown: %s", cause);
353 353
354 if (make_core) 354 if (make_core)
355 new_draw_info_format (flags, 0, 0, "This is considered a crash, but all maps and players have been saved.\n"); 355 new_draw_info_format (flags, 0, 0, "This is considered a crash, but all maps and players have been saved.");
356 else 356 else
357 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"); 357 new_draw_info_format (flags, 0, 0, "This is considered to be a clean shutdown, and all maps and players will be saved now.");
358 358
359 new_draw_info_format (flags, 0, 0, "%s\n", CLEANUP_MESSAGE); 359 new_draw_info_format (flags, 0, 0, "%s", CLEANUP_MESSAGE);
360 360
361 flush_sockets (); 361 flush_sockets ();
362} 362}
363 363
364/* clean up everything before exiting */ 364/* clean up everything before exiting */
394 cfperl_cleanup (make_core); 394 cfperl_cleanup (make_core);
395 _exit (1); 395 _exit (1);
396 } 396 }
397 else 397 else
398 { 398 {
399 new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "Maps and players successfully saved, exiting.\n"); 399 new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "Maps and players successfully saved, exiting.");
400 new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "And again: " CLEANUP_MESSAGE "\n"); 400 new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "And again: " CLEANUP_MESSAGE);
401 flush_sockets (); 401 flush_sockets ();
402 cfperl_cleanup (make_core); 402 cfperl_cleanup (make_core);
403 _exit (0); 403 _exit (0);
404 } 404 }
405} 405}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines