Changeset - r12127:5628875306d3
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2009-06-10 05:36:58
smatz@openttd.org
(svn r16548) -Fix (r16538): removing of duplicates of base graphics set could behave randomly
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/gfxinit.cpp
Show inline comments
 
@@ -468,8 +468,8 @@ bool OBGFileScanner::AddFile(const char 
 
		}
 
		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 {
0 comments (0 inline, 0 general)