--- deliantra/server/common/init.C 2007/03/11 02:12:44 1.28 +++ deliantra/server/common/init.C 2007/04/12 14:18:04 1.31 @@ -150,12 +150,9 @@ { init_globals (); init_block (); - ReadSmooth (); - init_anim (); /* Must be after we read in the bitmaps */ init_archetypes (); /* Reads all archetypes from file */ init_dynamic (); init_attackmess (); - init_clocks (); init_experience (); } @@ -242,59 +239,6 @@ exit (-1); } -unsigned long todtick; - -/* - * Write out the current time to the file so time does not - * reset every time the server reboots. - */ -void -write_todclock (void) -{ - char filename[MAX_BUF]; - FILE *fp; - - sprintf (filename, "%s/clockdata", settings.localdir); - if ((fp = fopen (filename, "w")) == NULL) - { - LOG (llevError, "Cannot open %s for writing\n", filename); - return; - } - fprintf (fp, "%lu", todtick); - fclose (fp); -} - -/* - * initialises the gametime and TOD counters - * Called by init_library(). - */ -void -init_clocks (void) -{ - char filename[MAX_BUF]; - FILE *fp; - static int has_been_done = 0; - - if (has_been_done) - return; - else - has_been_done = 1; - - sprintf (filename, "%s/clockdata", settings.localdir); - LOG (llevDebug, "Reading clockdata from %s...\n", filename); - if ((fp = fopen (filename, "r")) == NULL) - { - LOG (llevError, "Can't open %s.\n", filename); - todtick = 0; - write_todclock (); - return; - } - - fscanf (fp, "%lu", &todtick); - LOG (llevDebug, "todtick=%lu\n", todtick); - fclose (fp); -} - /* * initialises the attack messages. * Called by init_library().