Mercurial > hg > openttd
changeset 12595:10ec5a122e8a draft
(svn r17038) -Fix (r17015): don't download the stuff we already have
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 02 Aug 2009 13:58:11 +0000 |
parents | b4b818dab11b |
children | 8545e48ce63f |
files | src/network/network_content.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/network/network_content.cpp +++ b/src/network/network_content.cpp @@ -245,7 +245,7 @@ ContentID *ids = MallocT<ContentID>(infos.Length()); for (ContentIterator iter = infos.Begin(); iter != infos.End(); iter++) { const ContentInfo *ci = *iter; - if (!ci->IsSelected()) continue; + if (!ci->IsSelected() || ci->state == ContentInfo::ALREADY_HERE) continue; ids[files++] = ci->id; bytes += ci->filesize;