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.90 by root, Fri Feb 9 01:52:11 2007 UTC vs.
Revision 1.92 by root, Tue Mar 6 03:06:00 2007 UTC

473 LOG (llevDebug, "cleanup done.\n"); 473 LOG (llevDebug, "cleanup done.\n");
474 474
475 if (make_core) 475 if (make_core)
476 { 476 {
477 cleanup_inform (cause, make_core); 477 cleanup_inform (cause, make_core);
478 cfperl_cleanup (make_core);
478 _exit (1); 479 _exit (1);
479 } 480 }
480 else 481 else
481 { 482 {
482 new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "Maps and players successfully saved, exiting.\n"); 483 new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "Maps and players successfully saved, exiting.\n");
483 new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "And again: " CLEANUP_MESSAGE "\n"); 484 new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "And again: " CLEANUP_MESSAGE "\n");
484 flush_sockets (); 485 flush_sockets ();
486 cfperl_cleanup (make_core);
485 _exit (0); 487 _exit (0);
486 } 488 }
487} 489}
488 490
489int 491int
647{ 649{
648 settings.argc = argc; 650 settings.argc = argc;
649 settings.argv = argv; 651 settings.argv = argv;
650 652
651 init (argc, argv); 653 init (argc, argv);
654 init_environ ();
652 655
653 initPlugins (); 656 initPlugins ();
654 657
655 for (;;) 658 for (;;)
656 cfperl_main (); 659 cfperl_main ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines