summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-08-21 08:41:54 +0000
committerrubidium <rubidium@openttd.org>2009-08-21 08:41:54 +0000
commit865fc40e29e4cd3ea9b7b4fd95267532d6608b42 (patch)
treef7ce80cdbf74fb07e14897f3c48089e473174624 /src
parent2c896a9c6c49b05136266ceb43aac54384b5370c (diff)
downloadopenttd-865fc40e29e4cd3ea9b7b4fd95267532d6608b42.tar.xz
(svn r17245) -Fix [FS#3137] (r17015): you could, via unselect all, also unselect already installed content; it would not uninstall it though
Diffstat (limited to 'src')
-rw-r--r--src/network/network_content.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_content.cpp b/src/network/network_content.cpp
index 2e9ea559d..d19d21e9a 100644
--- a/src/network/network_content.cpp
+++ b/src/network/network_content.cpp
@@ -612,7 +612,7 @@ void ClientNetworkContentSocketHandler::UnselectAll()
{
for (ContentIterator iter = this->infos.Begin(); iter != this->infos.End(); iter++) {
ContentInfo *ci = *iter;
- if (ci->IsSelected()) ci->state = ContentInfo::UNSELECTED;
+ if (ci->IsSelected() && ci->state != ContentInfo::ALREADY_HERE) ci->state = ContentInfo::UNSELECTED;
}
}