mirror of
https://github.com/overte-org/overte.git
synced 2025-07-24 01:23:55 +02:00
Stop incrementing counter after limit reached
This commit is contained in:
parent
5f58c76842
commit
5871ecd85c
1 changed files with 13 additions and 10 deletions
|
@ -471,6 +471,8 @@ var leapHands = (function () {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
if (hands[h].inactiveCount < MAX_HAND_INACTIVE_COUNT) {
|
||||||
|
|
||||||
hands[h].inactiveCount += 1;
|
hands[h].inactiveCount += 1;
|
||||||
|
|
||||||
if (hands[h].inactiveCount === MAX_HAND_INACTIVE_COUNT) {
|
if (hands[h].inactiveCount === MAX_HAND_INACTIVE_COUNT) {
|
||||||
|
@ -487,6 +489,7 @@ var leapHands = (function () {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function tearDown() {
|
function tearDown() {
|
||||||
var h,
|
var h,
|
||||||
|
|
Loading…
Reference in a new issue