added using author from file 'levelinfo.conf' if not defined (MM engine)
authorHolger Schemel <info@artsoft.org>
Sat, 25 Feb 2017 19:27:03 +0000 (20:27 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 23 Mar 2018 22:21:09 +0000 (23:21 +0100)
src/files.c

index bf0237f2a26890530984dfa506f5384010d0fdc2..33990a38ff52adf06fb7fe560981c012e6469188 100644 (file)
@@ -3960,7 +3960,10 @@ void CopyNativeLevel_MM_to_RND(struct LevelInfo *level)
   level->gems_needed = level_mm->kettles_needed;
 
   strcpy(level->name, level_mm->name);
-  strcpy(level->author, level_mm->author);
+
+  /* only overwrite author from 'levelinfo.conf' if author defined in level */
+  if (!strEqual(level_mm->author, ANONYMOUS_NAME))
+    strcpy(level->author, level_mm->author);
 
   level->score[SC_PACMAN]     = level_mm->score[SC_PACMAN];
   level->score[SC_KEY]        = level_mm->score[SC_PACMAN];