mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Chenges (networking for PG, minor fixes)
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "../hch/CHeroHandler.h"
|
||||
#include "../hch/CTownHandler.h"
|
||||
#include "../hch/CCampaignHandler.h"
|
||||
#include "NetPacks.h"
|
||||
|
||||
|
||||
/*
|
||||
@@ -219,6 +220,16 @@ void CConnection::reportState(CLogger &out)
|
||||
}
|
||||
}
|
||||
|
||||
CPack * CConnection::retreivePack()
|
||||
{
|
||||
CPack *ret = NULL;
|
||||
boost::unique_lock<boost::mutex> lock(*rmx);
|
||||
tlog5 << "Listening... ";
|
||||
*this >> ret;
|
||||
tlog5 << "\treceived server message of type " << typeid(*ret).name() << std::endl;
|
||||
return ret;
|
||||
}
|
||||
|
||||
CSaveFile::CSaveFile( const std::string &fname )
|
||||
:sfile(NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user