Changeset - r12765:13a11d84969b
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-08-21 08:41:54
rubidium@openttd.org
(svn r17245) -Fix [FS#3137] (r17015): you could, via unselect all, also unselect already installed content; it would not uninstall it though
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/network/network_content.cpp
Show inline comments
 
@@ -609,13 +609,13 @@ void ClientNetworkContentSocketHandler::
 

	
 
/** Unselect everything that we've not downloaded so far. */
 
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;
 
	}
 
}
 

	
 
/** Toggle the state of a content info and check it's dependencies */
 
void ClientNetworkContentSocketHandler::ToggleSelectedState(const ContentInfo *ci)
 
{
0 comments (0 inline, 0 general)