Mercurial > hg > openttd
changeset 14067:7e63603325e2 draft
(svn r18610) -Codechange: don't consider a music set at all for 'best' set when it's missing files
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 23 Dec 2009 08:51:46 +0000 |
parents | f7ce0e000a0f |
children | efd1182433ab |
files | src/music.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/music.cpp +++ b/src/music.cpp @@ -43,6 +43,8 @@ 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 &&