mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-09 19:10:38 +00:00
(svn r16548) -Fix (r16538): removing of duplicates of base graphics set could behave randomly
This commit is contained in:
parent
ac991bff90
commit
e300d153cc
@ -468,8 +468,8 @@ bool OBGFileScanner::AddFile(const char *filename, size_t basepath_length)
|
||||
}
|
||||
if (duplicate != NULL) {
|
||||
/* The more complete graphics set takes precedence over the version number. */
|
||||
if ((duplicate->files == graphics->files && duplicate->version >= graphics->version) ||
|
||||
duplicate->files > graphics->files) {
|
||||
if ((duplicate->found_grfs == graphics->found_grfs && duplicate->version >= graphics->version) ||
|
||||
duplicate->found_grfs > graphics->found_grfs) {
|
||||
DEBUG(grf, 1, "Not adding %s (%i) as base graphics set (duplicate)", graphics->name, graphics->version);
|
||||
delete graphics;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user