- bugfix for particles CRC calculation for oos

This commit is contained in:
Mark Vejvoda 2013-10-18 04:55:29 +00:00
parent 5f3568ddd1
commit 23552eb1a7
2 changed files with 11 additions and 10 deletions

View File

@ -4941,6 +4941,7 @@ void Game::DumpCRCWorldLogIfRequired(string fileSuffix) {
logFile << "World CRC debug information:" << std::endl;
logFile << "============================" << std::endl;
logFile << "Maximum framecount: " << world.getFaction(0)->getCRC_DetailsForWorldFrameCount() << std::endl;
logFile << "Software version: " << glestVersionString << "-" << getCompilerNameString() << "-" << getSVNRevisionString() << std::endl;
for(unsigned int worldFrameIndex = 0; worldFrameIndex < world.getFaction(0)->getCRC_DetailsForWorldFrameCount(); ++worldFrameIndex) {
//factions (and their related info)

View File

@ -154,7 +154,7 @@ Checksum ParticleSystem::getCRC() {
crcForParticleSystem.addInt(blendMode);
crcForParticleSystem.addInt(state);
crcForParticleSystem.addInt(active);
crcForParticleSystem.addInt(visible);
//crcForParticleSystem.addInt(visible);
crcForParticleSystem.addInt(aliveParticleCount);
crcForParticleSystem.addInt(particleCount);
@ -325,7 +325,7 @@ string ParticleSystem::toString() const {
result += "\nblendMode = " + intToStr(blendMode);
result += "\nstate = " + intToStr(state);
result += "\nactive = " + intToStr(active);
result += "\nvisible = " + intToStr(visible);
//result += "\nvisible = " + intToStr(visible);
result += "\naliveParticleCount = " + intToStr(aliveParticleCount);
result += "\nparticleCount = " + intToStr(particleCount);
@ -1453,13 +1453,13 @@ void UnitParticleSystem::loadGame(const XmlNode *rootNode) {
}
Checksum UnitParticleSystem::getCRC() {
Checksum crcForParticleSystem = ParticleSystem::getCRC();
Checksum crcForParticleSystem = GameParticleSystem::getCRC();
return crcForParticleSystem;
}
string UnitParticleSystem::toString() const {
string result = ParticleSystem::toString();
string result = GameParticleSystem::toString();
result += "\nUnitParticleSystem ";
result += "\nradius = " + floatToStr(radius);
@ -1687,13 +1687,13 @@ void AttackParticleSystem::loadGame(const XmlNode *rootNode) {
}
Checksum AttackParticleSystem::getCRC() {
Checksum crcForParticleSystem = ParticleSystem::getCRC();
Checksum crcForParticleSystem = GameParticleSystem::getCRC();
return crcForParticleSystem;
}
string AttackParticleSystem::toString() const {
string result = ParticleSystem::toString();
string result = GameParticleSystem::toString();
result += "\nAttackParticleSystem ";
result += "\nsizeNoEnergy = " + floatToStr(sizeNoEnergy);
@ -2067,13 +2067,13 @@ void ProjectileParticleSystem::loadGame(const XmlNode *rootNode) {
}
Checksum ProjectileParticleSystem::getCRC() {
Checksum crcForParticleSystem = ParticleSystem::getCRC();
Checksum crcForParticleSystem = AttackParticleSystem::getCRC();
return crcForParticleSystem;
}
string ProjectileParticleSystem::toString() const {
string result = ParticleSystem::toString();
string result = AttackParticleSystem::toString();
result += "\nProjectileParticleSystem ";
if(nextParticleSystem != NULL) {
@ -2249,13 +2249,13 @@ void SplashParticleSystem::loadGame(const XmlNode *rootNode) {
}
Checksum SplashParticleSystem::getCRC() {
Checksum crcForParticleSystem = ParticleSystem::getCRC();
Checksum crcForParticleSystem = AttackParticleSystem::getCRC();
return crcForParticleSystem;
}
string SplashParticleSystem::toString() const {
string result = ParticleSystem::toString();
string result = AttackParticleSystem::toString();
result += "\nSplashParticleSystem ";
if(prevParticleSystem != NULL) {