Example #1
0
void RemoteClient::ResendBlockIfOnWire(v3s16 p)
{
	// if this block is on wire, mark it for sending again as soon as possible
	if (m_blocks_sending.find(p) != m_blocks_sending.end()) {
		SetBlockNotSent(p);
	}
}
Example #2
0
void RemoteClient::SetBlocksNotSent(std::map<v3s16, MapBlock*> &blocks)
{
	for(std::map<v3s16, MapBlock*>::iterator
			i = blocks.begin();
			i != blocks.end(); ++i)
	{
		v3s16 p = i->first;
		SetBlockNotSent(p);
	}
}
Example #3
0
void RemoteClient::SetBlockDeleted(v3s16 p) {
	SetBlockNotSent(p);
	m_blocks_sent.erase(p);
}
Example #4
0
void RemoteClient::ResendBlockIfOnWire(v3s16 p)
{
	// if this block is on wire, mark it for sending again as soon as possible
	SetBlockNotSent(p);
}