Changeset - r14057:f1009df0b28b
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-12-23 08:51:46
rubidium@openttd.org
(svn r18610) -Codechange: don't consider a music set at all for 'best' set when it's missing files
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/music.cpp
Show inline comments
 
@@ -43,6 +43,8 @@ template <class Tbase_set>
 

	
 
	const Tbase_set *best = NULL;
 
	for (const Tbase_set *c = BaseMedia<Tbase_set>::available_sets; c != NULL; c = c->next) {
 
		if (c->GetNumMissing() != 0) continue;
 

	
 
		if (best == NULL ||
 
				best->valid_files < c->valid_files ||
 
				(best->valid_files == c->valid_files &&
0 comments (0 inline, 0 general)