From: Holger Schemel Date: Sat, 25 Feb 2017 19:27:03 +0000 (+0100) Subject: added using author from file 'levelinfo.conf' if not defined (MM engine) X-Git-Tag: 4.1.0.0~187 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=18b405955496a3fe779a382607f6a85beb400cb7;p=rocksndiamonds.git added using author from file 'levelinfo.conf' if not defined (MM engine) --- diff --git a/src/files.c b/src/files.c index bf0237f2..33990a38 100644 --- a/src/files.c +++ b/src/files.c @@ -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];