try different login for deciding when to update/clear simulatorID

This commit is contained in:
Seth Alves 2015-04-13 16:37:44 -07:00
parent 4677324a87
commit 256a7f5198

View file

@ -199,10 +199,8 @@ bool EntityMotionState::shouldSendUpdate(uint32_t simulationFrame) {
simulatorID = "";
}
if (simulatorID != myNodeID) {
if (!simulatorID.isEmpty() && simulatorID != myNodeID) {
// some other Node is simulating this, so don't broadcast our computations.
qDebug() << "EntityMotionState::shouldSendUpdate baseResult=" << baseResult << "but"
<< simulatorID << "!=" << myNodeID;
return false;
}