Discard only generated background duplicates.

SVN revision: 37750
This commit is contained in:
Kim Woelders 2008-11-22 21:16:59 +00:00
parent 20e9396c05
commit 349a5a268c
1 changed files with 3 additions and 0 deletions

View File

@ -325,6 +325,9 @@ BackgroundCreate(const char *name, EColor * solid, const char *bgn, char tile,
static int
BackgroundCmp(Background * bg, Background * bgx)
{
if (*bgx->name != '.') /* Discard only generated backgrounds */
return 1;
if (bg->bg.file && bgx->bg.file)
{
if ((strcmp(bg->bg.file, bgx->bg.file)) ||