mirror of
https://github.com/overte-org/overte.git
synced 2025-06-23 07:59:35 +02:00
CR Fixes
This commit is contained in:
parent
535d4f5dea
commit
a8740614e2
2 changed files with 3 additions and 3 deletions
|
@ -240,11 +240,11 @@ function Teleporter() {
|
||||||
// We might hit an invisible entity that is not a seat, so we need to do a second pass.
|
// We might hit an invisible entity that is not a seat, so we need to do a second pass.
|
||||||
// * In the second pass we pick against visible entities only.
|
// * In the second pass we pick against visible entities only.
|
||||||
//
|
//
|
||||||
var intersection = Entities.findRayIntersection(pickRay, true, ignoredEntities, [this.targetEntity], false, true);
|
var intersection = Entities.findRayIntersection(pickRay, true, [], [this.targetEntity].concat(ignoredEntities), false, true);
|
||||||
|
|
||||||
var teleportLocationType = getTeleportTargetType(intersection);
|
var teleportLocationType = getTeleportTargetType(intersection);
|
||||||
if (teleportLocationType === TARGET.INVISIBLE) {
|
if (teleportLocationType === TARGET.INVISIBLE) {
|
||||||
intersection = Entities.findRayIntersection(pickRay, true, ignoredEntities, [this.targetEntity], true, true);
|
intersection = Entities.findRayIntersection(pickRay, true, [], [this.targetEntity].concat(ignoredEntities), true, true);
|
||||||
teleportLocationType = getTeleportTargetType(intersection);
|
teleportLocationType = getTeleportTargetType(intersection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
];
|
];
|
||||||
var PUNCH_COOLDOWN = 300;
|
var PUNCH_COOLDOWN = 300;
|
||||||
|
|
||||||
Script.include(Script.resolvePath('lookAtEntity.js?v2'));
|
Script.include('lookAtEntity.js');
|
||||||
|
|
||||||
BoppoClownEntity = function() {
|
BoppoClownEntity = function() {
|
||||||
var _this,
|
var _this,
|
||||||
|
|
Loading…
Reference in a new issue