rnd-20041114-1-src
authorHolger Schemel <info@artsoft.org>
Sun, 14 Nov 2004 10:46:09 +0000 (11:46 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 30 Aug 2014 08:48:17 +0000 (10:48 +0200)
* added use of "editorsetup.conf" for different level sets

ChangeLog
src/conftime.h
src/editor.c
src/game_em/graphics.c
src/libgame/setup.c
src/screens.c

index dde58647f80cc6eea1ab183788bb4401d212d01e..1364db0c8977ef17be93a9ed2c6d31a95bf1afb1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2004-11-13
+       * added use of "editorsetup.conf" for different level sets
+
 2004-10-26
        * added auto-detection for various types of Emerald Mine level files
 
index 3639cfa37eec731bfe6a8cfe30316170000db157..837157f0fd626c9e95e5ed97308076ec5f3c1012 100644 (file)
@@ -1 +1 @@
-#define COMPILE_DATE_STRING "[2004-10-26 02:14]"
+#define COMPILE_DATE_STRING "[2004-11-13 21:37]"
index 75c92d391f8c4ddc7897f0256cb66abe7492daef..1a1a8527762225cd1d506c76629e4d29ff6c2cdf 100644 (file)
@@ -4096,7 +4096,11 @@ static void ReinitializeElementList()
 
   checked_free(editor_elements);
 
+#if 0
   if (!initialized)
+#else
+  /* reload user defined element list for each invocation of level editor */
+#endif
   {
     /* initialize optional user defined element list */
     LoadUserDefinedEditorElementList(&editor_el_user_defined_ptr,
index 1d7e113030abba7e75b5d508eb49017e869e8ebd..ebf937256212cdd4ecd7f9aa1f4fea279e80209d 100644 (file)
@@ -84,6 +84,7 @@ static void animscreen(void)
   for (y = top; y < top + MAX_BUF_YSIZE; y++)
   {
     dy = y % MAX_BUF_YSIZE;
+
     for (x = left; x < left + MAX_BUF_XSIZE; x++)
     {
       dx = x % MAX_BUF_XSIZE;
index dc01ad4c9ecdbdcbffec3c9cf9a7117909d9877b..d63bc561997645c6416b1c9746202a55dce411b8 100644 (file)
@@ -404,7 +404,12 @@ char *getEditorSetupFilename()
   static char *filename = NULL;
 
   checked_free(filename);
+  filename = getPath2(getCurrentLevelDir(), EDITORSETUP_FILENAME);
 
+  if (fileExists(filename))
+    return filename;
+
+  checked_free(filename);
   filename = getPath2(getSetupDir(), EDITORSETUP_FILENAME);
 
   return filename;
@@ -438,8 +443,8 @@ char *getLevelSetInfoFilename()
   char *basenames[] =
   {
     "README",
-    "README.txt",
     "README.TXT",
+    "README.txt",
     "Readme",
     "Readme.txt",
     "readme",
@@ -452,8 +457,8 @@ char *getLevelSetInfoFilename()
   for (i = 0; basenames[i] != NULL; i++)
   {
     checked_free(filename);
-
     filename = getPath2(getCurrentLevelDir(), basenames[i]);
+
     if (fileExists(filename))
       return filename;
   }
index b1b57242660171d5c6df975fa3b35a667699f624..ed616df1d60504fc5a5245d0951484ae2d6afec8 100644 (file)
@@ -1957,6 +1957,7 @@ static struct TokenInfo setup_info_editor[] =
 #endif
   { TYPE_SWITCH,       &setup.editor.el_boulderdash,   "BoulderDash:"  },
   { TYPE_SWITCH,       &setup.editor.el_emerald_mine,  "Emerald Mine:" },
+  { TYPE_SWITCH,       &setup.editor.el_emerald_mine_club,"E.M. Club:" },
   { TYPE_SWITCH,       &setup.editor.el_more,          "More:"         },
   { TYPE_SWITCH,       &setup.editor.el_sokoban,       "Sokoban:"      },
   { TYPE_SWITCH,       &setup.editor.el_supaplex,      "Supaplex:"     },