Fixed the sprint speeds of Desktop vs HMD (they were flipped)

This commit is contained in:
Oren Hurvitz 2019-08-16 13:44:43 +03:00
parent 99aeb4aa2f
commit 62e5b50e24

View file

@ -5205,10 +5205,9 @@ bool MyAvatar::isReadyForPhysics() const {
void MyAvatar::setSprintMode(bool sprint) {
if (qApp->isHMDMode()) {
_walkSpeedScalar = sprint ? AVATAR_DESKTOP_SPRINT_SPEED_SCALAR : AVATAR_WALK_SPEED_SCALAR;
}
else {
_walkSpeedScalar = sprint ? AVATAR_HMD_SPRINT_SPEED_SCALAR : AVATAR_WALK_SPEED_SCALAR;
} else {
_walkSpeedScalar = sprint ? AVATAR_DESKTOP_SPRINT_SPEED_SCALAR : AVATAR_WALK_SPEED_SCALAR;
}
}