1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-10-31 00:07:39 +02:00
Some minor changes and fixes.
This commit is contained in:
Michał W. Urbańczyk
2011-08-25 15:24:37 +00:00
parent 4cad2f4587
commit 3152e6d540
20 changed files with 117 additions and 35 deletions

View File

@@ -243,6 +243,12 @@ CPack * CConnection::retreivePack()
return ret;
}
void CConnection::sendPack(const CPack &pack)
{
boost::unique_lock<boost::mutex> lock(*wmx);
*this << &pack; //packs has to be sent as polymorphic pointers!
}
CSaveFile::CSaveFile( const std::string &fname )
:sfile(NULL)
{