mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 23:01:47 +02:00
Updating with jshint edits
This commit is contained in:
parent
f356de5fdf
commit
35551f045c
1 changed files with 5 additions and 5 deletions
|
@ -145,11 +145,11 @@
|
||||||
MyAvatar.characterControllerEnabled = false;
|
MyAvatar.characterControllerEnabled = false;
|
||||||
MyAvatar.hmdLeanRecenterEnabled = false;
|
MyAvatar.hmdLeanRecenterEnabled = false;
|
||||||
var roles = this.rolesToOverride();
|
var roles = this.rolesToOverride();
|
||||||
for (i in roles) {
|
for (var i = 0; i < roles.length; i++) {
|
||||||
MyAvatar.overrideRoleAnimation(roles[i], ANIMATION_URL, ANIMATION_FPS, true, ANIMATION_FIRST_FRAME, ANIMATION_LAST_FRAME);
|
MyAvatar.overrideRoleAnimation(roles[i], ANIMATION_URL, ANIMATION_FPS, true, ANIMATION_FIRST_FRAME, ANIMATION_LAST_FRAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i in OVERRIDEN_DRIVE_KEYS) {
|
for (i = 0; i < OVERRIDEN_DRIVE_KEYS.length; i++) {
|
||||||
MyAvatar.disableDriveKey(OVERRIDEN_DRIVE_KEYS[i]);
|
MyAvatar.disableDriveKey(OVERRIDEN_DRIVE_KEYS[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -178,12 +178,12 @@
|
||||||
if (Settings.getValue(SETTING_KEY) === this.entityID) {
|
if (Settings.getValue(SETTING_KEY) === this.entityID) {
|
||||||
Settings.setValue(SETTING_KEY, "");
|
Settings.setValue(SETTING_KEY, "");
|
||||||
|
|
||||||
for (var i in OVERRIDEN_DRIVE_KEYS) {
|
for (var i = 0; i < OVERRIDEN_DRIVE_KEYS.length; i++) {
|
||||||
MyAvatar.enableDriveKey(OVERRIDEN_DRIVE_KEYS[i]);
|
MyAvatar.enableDriveKey(OVERRIDEN_DRIVE_KEYS[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
var roles = this.rolesToOverride();
|
var roles = this.rolesToOverride();
|
||||||
for (i in roles) {
|
for (i = 0; i < roles.length; i++) {
|
||||||
MyAvatar.restoreRoleAnimation(roles[i]);
|
MyAvatar.restoreRoleAnimation(roles[i]);
|
||||||
}
|
}
|
||||||
MyAvatar.characterControllerEnabled = true;
|
MyAvatar.characterControllerEnabled = true;
|
||||||
|
@ -260,7 +260,7 @@
|
||||||
// Check if a drive key is pressed
|
// Check if a drive key is pressed
|
||||||
var hasActiveDriveKey = false;
|
var hasActiveDriveKey = false;
|
||||||
for (var i in OVERRIDEN_DRIVE_KEYS) {
|
for (var i in OVERRIDEN_DRIVE_KEYS) {
|
||||||
if (MyAvatar.getRawDriveKey(OVERRIDEN_DRIVE_KEYS[i]) != 0.0) {
|
if (MyAvatar.getRawDriveKey(OVERRIDEN_DRIVE_KEYS[i]) !== 0.0) {
|
||||||
hasActiveDriveKey = true;
|
hasActiveDriveKey = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue