diff options
author | rubidium <rubidium@openttd.org> | 2009-08-02 13:58:11 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-08-02 13:58:11 +0000 |
commit | 95c204ebeeca8f40ed0bcbb7ad4c3f9a8f39363d (patch) | |
tree | 1c2996929ce8c88288a77527c3e1b183764c4dd0 | |
parent | 7f49d3b45c8fbfa0ee4cbe9fc670073b4e0b279d (diff) | |
download | openttd-95c204ebeeca8f40ed0bcbb7ad4c3f9a8f39363d.tar.xz |
(svn r17038) -Fix (r17015): don't download the stuff we already have
-rw-r--r-- | src/network/network_content.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp index 0dab801c1..b10d2cf85 100644 --- a/src/network/network_content.cpp +++ b/src/network/network_content.cpp @@ -245,7 +245,7 @@ void ClientNetworkContentSocketHandler::DownloadSelectedContent(uint &files, uin 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; |