mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 23:50:25 +00:00
(svn r17245) -Fix [FS#3137] (r17015): you could, via unselect all, also unselect already installed content; it would not uninstall it though
This commit is contained in:
parent
2c896a9c6c
commit
865fc40e29
@ -612,7 +612,7 @@ void ClientNetworkContentSocketHandler::UnselectAll()
|
|||||||
{
|
{
|
||||||
for (ContentIterator iter = this->infos.Begin(); iter != this->infos.End(); iter++) {
|
for (ContentIterator iter = this->infos.Begin(); iter != this->infos.End(); iter++) {
|
||||||
ContentInfo *ci = *iter;
|
ContentInfo *ci = *iter;
|
||||||
if (ci->IsSelected()) ci->state = ContentInfo::UNSELECTED;
|
if (ci->IsSelected() && ci->state != ContentInfo::ALREADY_HERE) ci->state = ContentInfo::UNSELECTED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user