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.112 by root, Sun Jul 1 05:00:20 2007 UTC vs.
Revision 1.113 by root, Mon Jul 30 02:03:02 2007 UTC

355 else 355 else
356 new_draw_info_format (flags, 0, 0, "This is considered to be a clean shutdown, and all maps and players will be saved now."); 356 new_draw_info_format (flags, 0, 0, "This is considered to be a clean shutdown, and all maps and players will be saved now.");
357 357
358 new_draw_info_format (flags, 0, 0, "%s", CLEANUP_MESSAGE); 358 new_draw_info_format (flags, 0, 0, "%s", CLEANUP_MESSAGE);
359 359
360 flush_sockets (); 360 client::flush_sockets ();
361} 361}
362 362
363/* clean up everything before exiting */ 363/* clean up everything before exiting */
364void 364void
365cleanup (const char *cause, bool make_core) 365cleanup (const char *cause, bool make_core)
395 } 395 }
396 else 396 else
397 { 397 {
398 new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "Maps and players successfully saved, exiting."); 398 new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "Maps and players successfully saved, exiting.");
399 new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "And again: " CLEANUP_MESSAGE); 399 new_draw_info_format (NDI_UNIQUE | NDI_ALL | NDI_GREEN, 0, 0, "And again: " CLEANUP_MESSAGE);
400 flush_sockets (); 400 client::flush_sockets ();
401 cfperl_cleanup (make_core); 401 cfperl_cleanup (make_core);
402 _exit (0); 402 _exit (0);
403 } 403 }
404} 404}
405 405
493 493
494void 494void
495server_tick () 495server_tick ()
496{ 496{
497 // first do the user visible stuff 497 // first do the user visible stuff
498 doeric_server ();
499 INVOKE_GLOBAL (CLOCK); 498 INVOKE_GLOBAL (CLOCK);
500 process_events (); /* "do" something with objects with speed */ 499 process_events (); // "do" something with objects with speed
501 flush_sockets (); 500 client::clock (); // draw client maps etc.
502 501
503 // then do some bookkeeping, should not really be here 502 // then do some bookkeeping, should not really be here
504 do_specials (); /* Routines called from time to time. */ 503 do_specials (); /* Routines called from time to time. */
505 attachable::check_mortals (); 504 attachable::check_mortals ();
506 505

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines