mirror of
https://github.com/glest/glest-source.git
synced 2025-08-16 13:23:59 +02:00
- added more crc logging to detect oos location
This commit is contained in:
@@ -2320,6 +2320,7 @@ void Faction::addCRC_DetailsForWorldFrame(int worldFrameCount,bool isNetworkServ
|
|||||||
|
|
||||||
for(unsigned int i = 0; i < units.size(); ++i) {
|
for(unsigned int i = 0; i < units.size(); ++i) {
|
||||||
Unit *unit = units[i];
|
Unit *unit = units[i];
|
||||||
|
|
||||||
unit->getRandom()->clearLastCaller();
|
unit->getRandom()->clearLastCaller();
|
||||||
unit->clearNetworkCRCDecHpList();
|
unit->clearNetworkCRCDecHpList();
|
||||||
}
|
}
|
||||||
|
@@ -4242,7 +4242,9 @@ std::string Unit::toString(bool crcMode) const {
|
|||||||
result += "inBailOutAttempt = " + intToStr(inBailOutAttempt) + "\n";
|
result += "inBailOutAttempt = " + intToStr(inBailOutAttempt) + "\n";
|
||||||
|
|
||||||
result += "random = " + intToStr(random.getLastNumber()) + "\n";
|
result += "random = " + intToStr(random.getLastNumber()) + "\n";
|
||||||
result += "randomlastCaller = " + random.getLastCaller() + "\n";
|
if(this->random.getLastCaller() != "") {
|
||||||
|
result += "randomlastCaller = " + random.getLastCaller() + "\n";
|
||||||
|
}
|
||||||
result += "pathFindRefreshCellCount = " + intToStr(pathFindRefreshCellCount) + "\n";
|
result += "pathFindRefreshCellCount = " + intToStr(pathFindRefreshCellCount) + "\n";
|
||||||
|
|
||||||
result += "lastStuckFrame = " + uIntToStr(lastStuckFrame) + "\n";
|
result += "lastStuckFrame = " + uIntToStr(lastStuckFrame) + "\n";
|
||||||
|
@@ -48,6 +48,7 @@ public:
|
|||||||
std::string getLastCaller() const;
|
std::string getLastCaller() const;
|
||||||
void clearLastCaller() { lastCaller.clear(); }
|
void clearLastCaller() { lastCaller.clear(); }
|
||||||
//void clearLastCaller() { }
|
//void clearLastCaller() { }
|
||||||
|
void addLastCaller(std::string text) { lastCaller.push_back(text); }
|
||||||
};
|
};
|
||||||
|
|
||||||
}}//end namespace
|
}}//end namespace
|
||||||
|
@@ -40,7 +40,9 @@ void RandomGen::init(int seed){
|
|||||||
}
|
}
|
||||||
|
|
||||||
int RandomGen::rand(string lastCaller) {
|
int RandomGen::rand(string lastCaller) {
|
||||||
this->lastCaller.push_back(lastCaller);
|
if(lastCaller != "") {
|
||||||
|
this->lastCaller.push_back(lastCaller);
|
||||||
|
}
|
||||||
this->lastNumber = (a*lastNumber + b) % m;
|
this->lastNumber = (a*lastNumber + b) % m;
|
||||||
return lastNumber;
|
return lastNumber;
|
||||||
}
|
}
|
||||||
@@ -49,7 +51,7 @@ std::string RandomGen::getLastCaller() const {
|
|||||||
std::string result = "";
|
std::string result = "";
|
||||||
if(lastCaller.empty() == false) {
|
if(lastCaller.empty() == false) {
|
||||||
for(unsigned int index = 0; index < lastCaller.size(); ++index) {
|
for(unsigned int index = 0; index < lastCaller.size(); ++index) {
|
||||||
result += lastCaller[index] + " ";
|
result += lastCaller[index] + "|";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
Reference in New Issue
Block a user