MyAvatar: Removed unnecessary slot.

This commit is contained in:
Anthony J. Thibault 2016-04-18 13:19:49 -07:00
parent f15bc7b99a
commit dc92ccc2b2
2 changed files with 2 additions and 7 deletions

View file

@ -199,7 +199,7 @@ MyAvatar::MyAvatar(RigPointer rig) :
}
});
connect(rig.get(), SIGNAL(onLoadComplete()), SLOT(onRigLoadComplete()));
connect(rig.get(), SIGNAL(onLoadComplete()), this, SIGNAL(onLoadComplete()));
}
MyAvatar::~MyAvatar() {
@ -1568,6 +1568,7 @@ glm::vec3 MyAvatar::applyKeyboardMotor(float deltaTime, const glm::vec3& localVe
float speedIncreaseFactor = 1.8f;
motorSpeed *= 1.0f + glm::clamp(deltaTime / speedGrowthTimescale , 0.0f, 1.0f) * speedIncreaseFactor;
const float maxBoostSpeed = getUniformScale() * MAX_BOOST_SPEED;
if (motorSpeed < maxBoostSpeed) {
// an active keyboard motor should never be slower than this
float boostCoefficient = (maxBoostSpeed - motorSpeed) / maxBoostSpeed;
@ -2104,7 +2105,3 @@ bool MyAvatar::didTeleport() {
lastPosition = pos;
return (changeInPosition.length() > MAX_AVATAR_MOVEMENT_PER_FRAME);
}
void MyAvatar::onRigLoadComplete() {
emit onLoadComplete();
}

View file

@ -469,8 +469,6 @@ private:
float getEnergy();
void setEnergy(float value);
bool didTeleport();
private slots:
void onRigLoadComplete();
};
QScriptValue audioListenModeToScriptValue(QScriptEngine* engine, const AudioListenerMode& audioListenerMode);