diff options
Diffstat (limited to 'src/gfxinit.cpp')
-rw-r--r-- | src/gfxinit.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gfxinit.cpp b/src/gfxinit.cpp index 73f2dd3d3..f471ab226 100644 --- a/src/gfxinit.cpp +++ b/src/gfxinit.cpp @@ -467,7 +467,9 @@ bool OBGFileScanner::AddFile(const char *filename, size_t basepath_length) } } if (duplicate != NULL) { - if (duplicate->version >= graphics->version) { + /* The more complete graphics set takes precedence over the version number. */ + if ((duplicate->files == graphics->files && duplicate->version >= graphics->version) || + duplicate->files > graphics->files) { DEBUG(grf, 1, "Not adding %s (%i) as base graphics set (duplicate)", graphics->name, graphics->version); delete graphics; } else { |