some code cleanup
This commit is contained in:
parent
bca6b5a8fb
commit
0c9679b8b2
|
@ -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);
|
||||
|
|
|
@ -36,6 +36,8 @@ public:
|
|||
static NetworkManager &getInstance();
|
||||
|
||||
NetworkManager();
|
||||
virtual ~NetworkManager();
|
||||
|
||||
void init(NetworkRole networkRole,bool publishEnabled=false);
|
||||
void end();
|
||||
void update();
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue