History

Fix function name

David Rowe committed 8 years ago

Commit dc46c201 parent 93eba5f1 file · +5 −5Browse files

Showing the changes to scripts/system/controllers/controllerModules (1 of 1 file). Show all

Unified · Split

scripts/system/controllers/controllerModules/farActionGrabEntity.js+5−5
@@ -282,7 +282,7 @@ Script.include("/~/system/libraries/Xform.js"); · 281 unmodified lines
282282 this.previousRoomControllerPosition = roomControllerPosition;
283283 };
284284
285− this.endNearGrabAction = function () {
285+ this.endFarGrabAction = function () {
286286 ensureDynamic(this.grabbedThingID);
287287 this.distanceHolding = false;
288288 this.distanceRotating = false;
@@ -402,7 +402,7 @@ Script.include("/~/system/libraries/Xform.js"); · 113 unmodified lines
402402 this.run = function (controllerData) {
403403 if (controllerData.triggerValues[this.hand] < TRIGGER_OFF_VALUE ||
404404 this.notPointingAtEntity(controllerData) || this.targetIsNull()) {
405− this.endNearGrabAction();
405+ this.endFarGrabAction();
406406 Selection.removeFromSelectedItemsList(DISPATCHER_HOVERING_LIST, "entity",
407407 this.highlightedEntity);
408408 this.highlightedEntity = null;
@@ -434,7 +434,7 @@ Script.include("/~/system/libraries/Xform.js"); · 25 unmodified lines
434434 // stop the far-grab so the near-grab or equip can take over.
435435 for (var k = 0; k < nearGrabReadiness.length; k++) {
436436 if (nearGrabReadiness[k].active && nearGrabReadiness[k].targets[0] === this.grabbedThingID) {
437− this.endNearGrabAction();
437+ this.endFarGrabAction();
438438 return makeRunningValues(false, [], []);
439439 }
440440 }
@@ -445,7 +445,7 @@ Script.include("/~/system/libraries/Xform.js"); · 4 unmodified lines
445445 // where it could near-grab something, stop searching.
446446 for (var j = 0; j < nearGrabReadiness.length; j++) {
447447 if (nearGrabReadiness[j].active) {
448− this.endNearGrabAction();
448+ this.endFarGrabAction();
449449 return makeRunningValues(false, [], []);
450450 }
451451 }
@@ -577,7 +577,7 @@ Script.include("/~/system/libraries/Xform.js"); · 125 unmodified lines
577577 var disableModule = getEnabledModuleByName(moduleName);
578578 if (disableModule) {
579579 if (disableModule.disableModules) {
580− this.endNearGrabAction();
580+ this.endFarGrabAction();
581581 Selection.removeFromSelectedItemsList(DISPATCHER_HOVERING_LIST, "entity",
582582 this.highlightedEntity);
583583 this.highlightedEntity = null;