--- deliantra/server/common/init.C 2007/01/15 21:06:18 1.23 +++ deliantra/server/common/init.C 2007/03/11 02:12:44 1.28 @@ -82,7 +82,6 @@ BALANCED_STAT_LOSS, NOT_PERMADETH, SIMPLE_EXP, - RESET_LOCATION_TIME, SET_TITLE, RESURRECTION, SEARCH_ITEMS, @@ -149,11 +148,8 @@ void init_library (void) { - init_environ (); init_globals (); - init_vars (); init_block (); - ReadBmapNames (); ReadSmooth (); init_anim (); /* Must be after we read in the bitmaps */ init_archetypes (); /* Reads all archetypes from file */ @@ -202,12 +198,10 @@ settings.tmpdir = cp; } - /* * Initialises all global variables. * Might use environment-variables as default for some of them. */ - void init_globals (void) { @@ -254,7 +248,6 @@ * Write out the current time to the file so time does not * reset every time the server reboots. */ - void write_todclock (void) { @@ -275,7 +268,6 @@ * initialises the gametime and TOD counters * Called by init_library(). */ - void init_clocks (void) { @@ -297,6 +289,7 @@ write_todclock (); return; } + fscanf (fp, "%lu", &todtick); LOG (llevDebug, "todtick=%lu\n", todtick); fclose (fp);