added more important logging for out of synch
This commit is contained in:
parent
29155d31c1
commit
e456096ffc
|
@ -370,8 +370,14 @@ void FactionThread::execute() {
|
||||||
//update = true;
|
//update = true;
|
||||||
if(update == true) {
|
if(update == true) {
|
||||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugWorldSynch).enabled == true) {
|
if(SystemFlags::getSystemSettingType(SystemFlags::debugWorldSynch).enabled == true) {
|
||||||
|
float updateProgressValue = unit->getUpdateProgress();
|
||||||
|
int speed = unit->getCurrSkill()->getTotalSpeed(unit->getTotalUpgrade());
|
||||||
|
float df = unit->getDiagonalFactor();
|
||||||
|
float hf = unit->getHeightFactor();
|
||||||
|
bool changedActiveCommand = unit->isChangedActiveCommand();
|
||||||
|
|
||||||
char szBuf[8096]="";
|
char szBuf[8096]="";
|
||||||
snprintf(szBuf,8096,"unit->needToUpdate() returned: %d",update);
|
snprintf(szBuf,8096,"unit->needToUpdate() returned: %d updateProgressValue: %f speed: %d changedActiveCommand: %d df: %f hf: %f",update,updateProgressValue,speed,changedActiveCommand,df,hf);
|
||||||
unit->logSynchDataThreaded(__FILE__,__LINE__,szBuf);
|
unit->logSynchDataThreaded(__FILE__,__LINE__,szBuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue