mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-13 19:05:36 +02:00
simpler betterNumber test.
This commit is contained in:
parent
3d01b3ec2b
commit
fbcacbe14a
2 changed files with 3 additions and 2 deletions
|
@ -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);
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue