rnd-20051203-1-src
authorHolger Schemel <info@artsoft.org>
Sat, 3 Dec 2005 08:11:41 +0000 (09:11 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 30 Aug 2014 08:49:36 +0000 (10:49 +0200)
* fixed major bug which prevented private levels from being edited
* fixed graphical bug with player animation when player moves slowly

ChangeLog
src/conftime.h
src/libgame/setup.c

index f8eec8df88b89906ec8b546dac87901c1590f718..0867745c45a79ed8255dab46114ff4a78e56a9e9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-12-03
+       * fixed major bug which prevented private levels from being edited
+
+2005-12-02
+       * fixed graphical bug with player animation when player moves slowly
+
 2005-11-28
        * fixed bug which prevented "global.num_toons: 0" from working
 
index 75edfffad93682f2e46d4dad0e5bcd2df9d81c56..119bc69c8375bbf33d56ee8379a9566eed406e35 100644 (file)
@@ -1 +1 @@
-#define COMPILE_DATE_STRING "[2005-12-02 20:36]"
+#define COMPILE_DATE_STRING "[2005-12-03 00:09]"
index d78e3c70f6b2addf7174478c7a8dda4859bb779f..656bc519083cbd3458b55114328060b128917328 100644 (file)
@@ -1965,11 +1965,16 @@ static boolean LoadLevelInfoFromLevelConf(TreeInfo **node_first,
   leveldir_new->in_user_dir =
     (strcmp(leveldir_new->basepath, options.level_directory) != 0);
 
-  /* adjust sort priority if user's private level directory was detected */
+  /* adjust some settings if user's private level directory was detected */
   if (leveldir_new->sort_priority == LEVELCLASS_UNDEFINED &&
       leveldir_new->in_user_dir &&
-      strcmp(leveldir_new->subdir, getLoginName()) == 0)
+      (strcmp(leveldir_new->subdir, getLoginName()) == 0 ||
+       strcmp(leveldir_new->name,   getLoginName()) == 0 ||
+       strcmp(leveldir_new->author, getRealName())  == 0))
+  {
     leveldir_new->sort_priority = LEVELCLASS_PRIVATE_START;
+    leveldir_new->readonly = FALSE;
+  }
 
   leveldir_new->user_defined =
     (leveldir_new->in_user_dir && IS_LEVELCLASS_PRIVATE(leveldir_new));