simpler betterNumber test.

This commit is contained in:
Howard Stearns 2016-02-02 14:31:32 -08:00
parent 3d01b3ec2b
commit fbcacbe14a
2 changed files with 3 additions and 2 deletions

View file

@ -76,7 +76,8 @@ virtualBaton = function virtualBaton(options) {
// which keeps the combined number unique and yet still strictly ordered.
function betterNumber(number, best) {
debug('baton: betterNumber', number, best);
return ((number.number || 0) > best.number) && (!best.proposerId || (number.proposerId >= best.proposerId));
//FIXME return ((number.number || 0) > best.number) && (!best.proposerId || (number.proposerId >= best.proposerId));
return (number.number || 0) > best.number;
}
function propose(claim) {
debug('baton: propose', claim);

View file

@ -12,7 +12,7 @@ var Vec3, Quat, MyAvatar, Entities, Camera, Script, print;
// All participants should run the test script.
Script.include("../libraries/virtualBaton.20.js");
Script.include("../libraries/virtualBaton.21.js");
var TICKER_INTERVAL = 1000; // ms
var baton = virtualBaton({key: 'io.highfidelity.testBaton'});
var ticker, countDown;