rnd-19990929-1-src
[rocksndiamonds.git] / src / init.c
index a9f061770b0532013b5f64a822ebb52a0711f780..4adf31ec62cf114fa6ccddeb73987d08ba1ea5e0 100644 (file)
@@ -55,6 +55,10 @@ static void InitElementProperties(void);
 
 void OpenAll(int argc, char *argv[])
 {
+#ifdef MSDOS
+  initErrorFile();
+#endif
+
   if (options.serveronly)
   {
     NetworkServer(options.server_port, options.serveronly);
@@ -81,8 +85,8 @@ void OpenAll(int argc, char *argv[])
   InitGfx();
   InitElementProperties();     /* initializes IS_CHAR() for el2gfx() */
 
-  InitGadgets();
   InitLevelAndPlayerInfo();
+  InitGadgets();               /* needs to know number of level series */
 
   DrawMainMenu();
 
@@ -473,7 +477,8 @@ void InitGfx()
     { "SP",    TRUE },
     { "DC",    TRUE },
     { "Font",  FALSE },
-    { "Font2", FALSE }
+    { "Font2", FALSE },
+    { "Font3", FALSE }
   }; 
 #else
   static struct PictureFileInfo pic[NUM_PICTURES] =
@@ -485,7 +490,8 @@ void InitGfx()
     { "RocksSP",       TRUE },
     { "RocksDC",       TRUE },
     { "RocksFont",     FALSE },
-    { "RocksFont2",    FALSE }
+    { "RocksFont2",    FALSE },
+    { "RocksFont3",    FALSE }
   }; 
 #endif
 
@@ -807,6 +813,7 @@ void InitGadgets()
   CreateGameButtons();
   CreateTapeButtons();
   CreateToolButtons();
+  CreateScreenGadgets();
 }
 
 void InitElementProperties()