some code cleanup

This commit is contained in:
Mark Vejvoda 2013-05-17 02:14:43 +00:00
parent bca6b5a8fb
commit 0c9679b8b2
3 changed files with 7 additions and 1 deletions

View File

@ -36,6 +36,10 @@ NetworkManager::NetworkManager() {
if(SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d] this->networkRole = %d gameNetworkInterface [%p]\n",__FILE__,__FUNCTION__,__LINE__,this->networkRole,gameNetworkInterface);
}
NetworkManager::~NetworkManager() {
end();
}
void NetworkManager::init(NetworkRole networkRole, bool publishEnabled) {
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
if(SystemFlags::getSystemSettingType(SystemFlags::debugNetwork).enabled) SystemFlags::OutputDebug(SystemFlags::debugNetwork,"In [%s::%s Line: %d] this->networkRole = %d, networkRole = %d, gameNetworkInterface [%p]\n",__FILE__,__FUNCTION__,__LINE__,this->networkRole,networkRole,gameNetworkInterface);

View File

@ -36,6 +36,8 @@ public:
static NetworkManager &getInstance();
NetworkManager();
virtual ~NetworkManager();
void init(NetworkRole networkRole,bool publishEnabled=false);
void end();
void update();

View File

@ -3542,7 +3542,7 @@ void Unit::logSynchData(string file,int line,string source) {
SystemFlags::OutputDebug(SystemFlags::debugWorldSynch,"%s ",source.c_str());
}
SystemFlags::OutputDebug(SystemFlags::debugWorldSynch,"%s\n",szBuf);
SystemFlags::OutputDebug(SystemFlags::debugWorldSynch,"------------------------------------ END [[FRAME %d UNIT: %d - %s] ------------------------------------------------\n",getFrameCount(),this->id,this->getType()->getName().c_str());
SystemFlags::OutputDebug(SystemFlags::debugWorldSynch,"------------------------------------ END [FRAME %d UNIT: %d - %s] ------------------------------------------------\n",getFrameCount(),this->id,this->getType()->getName().c_str());
}
}
}