mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 07:29:44 +00:00
(svn r17038) -Fix (r17015): don't download the stuff we already have
This commit is contained in:
parent
7f49d3b45c
commit
95c204ebee
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user