Changeset - r11212:ef73b4ad95ab
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-02-24 13:25:35
rubidium@openttd.org
(svn r15565) -Fix [FS#2675]: dependency information wasn't requested after the content state was reset causing the dependencies not always being selected (and thus downloaded) automatically.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/network/network_content.cpp
Show inline comments
 
@@ -745,24 +745,25 @@ void ClientNetworkContentSocketHandler::
 
		}
 
		for (ConstContentIterator iter = parents.Begin(); iter != parents.End(); iter++) {
 
			this->CheckDependencyState(this->GetContent((*iter)->id));
 
		}
 
	}
 
}
 

	
 
void ClientNetworkContentSocketHandler::Clear()
 
{
 
	for (ContentIterator iter = this->infos.Begin(); iter != this->infos.End(); iter++) delete *iter;
 

	
 
	this->infos.Clear();
 
	this->requested.Clear();
 
}
 

	
 
/*** CALLBACK ***/
 

	
 
void ClientNetworkContentSocketHandler::OnConnect(bool success)
 
{
 
	for (ContentCallback **iter = this->callbacks.Begin(); iter != this->callbacks.End(); /* nothing */) {
 
		ContentCallback *cb = *iter;
 
		cb->OnConnect(success);
 
		if (iter != this->callbacks.End() && *iter == cb) iter++;
 
	}
 
}
0 comments (0 inline, 0 general)