Don't jump in HMD mode unless option is set

This commit is contained in:
David Rowe 2018-09-28 16:05:20 +12:00
parent 868a3a9219
commit f2c13f193c

View file

@ -3362,7 +3362,7 @@ float MyAvatar::getRawDriveKey(DriveKeys key) const {
}
void MyAvatar::relayDriveKeysToCharacterController() {
if (getDriveKey(TRANSLATE_Y) > 0.0f) {
if (getDriveKey(TRANSLATE_Y) > 0.0f && (!qApp->isHMDMode() || useAdvancedMovementControls() && getFlyingHMDPref())) {
_characterController.jump();
}
}