mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 14:12:26 +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.hmdLeanRecenterEnabled = false;
|
||||
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);
|
||||
}
|
||||
|
||||
for (var i in OVERRIDEN_DRIVE_KEYS) {
|
||||
for (i = 0; i < OVERRIDEN_DRIVE_KEYS.length; i++) {
|
||||
MyAvatar.disableDriveKey(OVERRIDEN_DRIVE_KEYS[i]);
|
||||
}
|
||||
|
||||
|
@ -178,12 +178,12 @@
|
|||
if (Settings.getValue(SETTING_KEY) === this.entityID) {
|
||||
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]);
|
||||
}
|
||||
|
||||
var roles = this.rolesToOverride();
|
||||
for (i in roles) {
|
||||
for (i = 0; i < roles.length; i++) {
|
||||
MyAvatar.restoreRoleAnimation(roles[i]);
|
||||
}
|
||||
MyAvatar.characterControllerEnabled = true;
|
||||
|
@ -260,7 +260,7 @@
|
|||
// Check if a drive key is pressed
|
||||
var hasActiveDriveKey = false;
|
||||
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;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue