attempt to see if this fixes out of synch

This commit is contained in:
Mark Vejvoda 2013-05-23 23:55:28 +00:00
parent a94787654d
commit a0b87ba7eb

View File

@ -389,8 +389,9 @@ void FactionThread::execute() {
else { else {
if(SystemFlags::getSystemSettingType(SystemFlags::debugWorldSynch).enabled == true) { if(SystemFlags::getSystemSettingType(SystemFlags::debugWorldSynch).enabled == true) {
float updateProgressValue = unit->getUpdateProgress(); float updateProgressValue = unit->getUpdateProgress();
int speed = unit->getCurrSkill()->getTotalSpeed(unit->getTotalUpgrade());
char szBuf[8096]=""; char szBuf[8096]="";
snprintf(szBuf,8096,"unit->needToUpdate() returned: %d updateProgressValue: %f",update,updateProgressValue); snprintf(szBuf,8096,"unit->needToUpdate() returned: %d updateProgressValue: %f speed = %d",update,updateProgressValue,speed);
unit->logSynchDataThreaded(__FILE__,__LINE__,szBuf); unit->logSynchDataThreaded(__FILE__,__LINE__,szBuf);
} }