- added useful debug info for world synch debugging (unit path and faction info)
This commit is contained in:
parent
ca2408073e
commit
33aac9f2ae
|
@ -1712,10 +1712,11 @@ void Unit::logSynchData(string source) {
|
||||||
char szBuf[1024]="";
|
char szBuf[1024]="";
|
||||||
sprintf(szBuf,
|
sprintf(szBuf,
|
||||||
//"Unit = %d [%s] [%s] pos = %s, lastPos = %s, targetPos = %s, targetVec = %s, meetingPos = %s, lastRotation [%f], targetRotation [%f], rotation [%f], progress [%f], progress2 [%f]\n",
|
//"Unit = %d [%s] [%s] pos = %s, lastPos = %s, targetPos = %s, targetVec = %s, meetingPos = %s, lastRotation [%f], targetRotation [%f], rotation [%f], progress [%f], progress2 [%f]\n",
|
||||||
"FrameCount [%d] Unit = %d [%s] pos = %s, lastPos = %s, targetPos = %s, targetVec = %s, meetingPos = %s, lastRotation [%f], targetRotation [%f], rotation [%f], progress [%f], progress2 [%d]\n",
|
"FrameCount [%d] Unit = %d [%s][%s] pos = %s, lastPos = %s, targetPos = %s, targetVec = %s, meetingPos = %s, lastRotation [%f], targetRotation [%f], rotation [%f], progress [%f], progress2 [%d]\nUnit Path [%s]\n",
|
||||||
getFrameCount(),
|
getFrameCount(),
|
||||||
id,
|
id,
|
||||||
getFullName().c_str(),
|
getFullName().c_str(),
|
||||||
|
faction->getType()->getName().c_str(),
|
||||||
//getDesc().c_str(),
|
//getDesc().c_str(),
|
||||||
pos.getString().c_str(),
|
pos.getString().c_str(),
|
||||||
lastPos.getString().c_str(),
|
lastPos.getString().c_str(),
|
||||||
|
@ -1726,7 +1727,8 @@ void Unit::logSynchData(string source) {
|
||||||
targetRotation,
|
targetRotation,
|
||||||
rotation,
|
rotation,
|
||||||
progress,
|
progress,
|
||||||
progress2);
|
progress2,
|
||||||
|
(unitPath != NULL ? unitPath->toString().c_str() : "NULL"));
|
||||||
|
|
||||||
if(lastSynchDataString != string(szBuf)) {
|
if(lastSynchDataString != string(szBuf)) {
|
||||||
lastSynchDataString = string(szBuf);
|
lastSynchDataString = string(szBuf);
|
||||||
|
|
Loading…
Reference in New Issue