mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-14 00:47:17 +02:00
dead code and print statements
This commit is contained in:
parent
a31ba089c1
commit
35da54fc6c
2 changed files with 6 additions and 9 deletions
|
@ -348,8 +348,6 @@ function moveRats() {
|
|||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
// no meta rat for this rat
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -363,8 +361,6 @@ function checkDistanceFromNest(rat) {
|
|||
if (distance < RAT_IN_NEST_DISTANCE) {
|
||||
//at nest
|
||||
removeRatFromScene(rat);
|
||||
} else {
|
||||
//not yet at nest
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ function flee(thisEntity, target) {
|
|||
|
||||
return steer;
|
||||
} else {
|
||||
// print('target too far away to flee' + d);
|
||||
//target too far away to flee
|
||||
return
|
||||
}
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ function fleeAllAvatars(thisEntity) {
|
|||
var entityID = nearbyEntities[entityIndex];
|
||||
var entityProps = Entities.getEntityProperties(entityID);
|
||||
if (entityProps.name === 'Hifi-Avatar-Detector') {
|
||||
//print('found an avatar to flee')
|
||||
//found an avatar to flee
|
||||
|
||||
var MAX_SPEED = 8;
|
||||
var MAX_FORCE = 8;
|
||||
|
@ -62,7 +62,7 @@ function fleeAllAvatars(thisEntity) {
|
|||
steer = steerVector.limit(MAX_FORCE);
|
||||
flightVectors.push(steer);
|
||||
} else {
|
||||
// print('target too far away from this avatar to flee' + d);
|
||||
// target too far away from this avatar to flee
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -83,7 +83,8 @@ function fleeAvoiderBlocks(thisEntity) {
|
|||
var entityID = nearbyEntities[entityIndex];
|
||||
var entityProps = Entities.getEntityProperties(entityID);
|
||||
if (entityProps.name === 'Hifi-Rat-Avoider') {
|
||||
// print('found an avoiderblock to flee');
|
||||
//found an avoiderblock to flee
|
||||
|
||||
var MAX_SPEED = 11;
|
||||
var MAX_FORCE = 6;
|
||||
var FLEE_AVOIDER_RANGE = 5;
|
||||
|
@ -99,7 +100,7 @@ function fleeAvoiderBlocks(thisEntity) {
|
|||
steer = steerVector.limit(MAX_FORCE);
|
||||
flightVectors.push(steer);
|
||||
} else {
|
||||
//print('target too far away from this avoider to flee' + d);
|
||||
//target too far away from this avoider to flee
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue