mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 22:39:18 +02:00
cleanup debug
This commit is contained in:
parent
b48161ae26
commit
26366e9fe7
1 changed files with 3 additions and 3 deletions
|
@ -128,7 +128,7 @@ bool ParticleTreeElement::containsParticle(const Particle& particle) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ParticleTreeElement::updateParticle(const Particle& particle) {
|
bool ParticleTreeElement::updateParticle(const Particle& particle) {
|
||||||
bool wantDebug = false;
|
const bool wantDebug = false;
|
||||||
uint16_t numberOfParticles = _particles.size();
|
uint16_t numberOfParticles = _particles.size();
|
||||||
for (uint16_t i = 0; i < numberOfParticles; i++) {
|
for (uint16_t i = 0; i < numberOfParticles; i++) {
|
||||||
if (_particles[i].getID() == particle.getID()) {
|
if (_particles[i].getID() == particle.getID()) {
|
||||||
|
@ -145,8 +145,8 @@ bool ParticleTreeElement::updateParticle(const Particle& particle) {
|
||||||
_particles[i].copyChangedProperties(particle);
|
_particles[i].copyChangedProperties(particle);
|
||||||
} else {
|
} else {
|
||||||
if (wantDebug) {
|
if (wantDebug) {
|
||||||
printf(">>> NO CHANGE <<< -- local particle [id:%d] %s and %s than server particle by %d, "
|
printf(">>> IGNORING SERVER!!! Would've caused jutter! <<< "
|
||||||
"particle.isNewlyCreated()=%s\n",
|
"local particle [id:%d] %s and %s than server particle by %d, particle.isNewlyCreated()=%s\n",
|
||||||
particle.getID(), (changedOnServer ? "CHANGED" : "same"),
|
particle.getID(), (changedOnServer ? "CHANGED" : "same"),
|
||||||
(localOlder ? "OLDER" : "NEWER"),
|
(localOlder ? "OLDER" : "NEWER"),
|
||||||
difference, debug::valueOf(particle.isNewlyCreated()) );
|
difference, debug::valueOf(particle.isNewlyCreated()) );
|
||||||
|
|
Loading…
Reference in a new issue