Changeset - r10883:47e6562a16eb
[Not reviewed]
master
0 1 0
rubidium - 16 years ago 2009-01-23 09:09:12
rubidium@openttd.org
(svn r15218) -Fix: base graphics detection did mark too much as duplicate
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/gfxinit.cpp
Show inline comments
 
@@ -466,13 +466,13 @@ bool OBGFileScanner::AddFile(const char 
 
		*path = '\0';
 
	}
 

	
 
	if (FillGraphicsSetDetails(graphics, ini, path)) {
 
		bool duplicate = false;
 
		for (const GraphicsSet *c = _available_graphics_sets; !duplicate && c != NULL; c = c->next) {
 
			duplicate = (strcmp(c->name, graphics->name) == 0) || (c->shortname == graphics->shortname && c->version == graphics->version);
 
			duplicate = (strcmp(c->name, graphics->name) == 0 || c->shortname == graphics->shortname) && c->version == graphics->version;
 
		}
 
		if (duplicate) {
 
			delete graphics;
 
		} else {
 
			graphics->next = _available_graphics_sets;
 
			_available_graphics_sets = graphics;
0 comments (0 inline, 0 general)