mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 18:01:15 +02:00
Don't jump in HMD mode unless option is set
This commit is contained in:
parent
868a3a9219
commit
f2c13f193c
1 changed files with 1 additions and 1 deletions
|
@ -3362,7 +3362,7 @@ float MyAvatar::getRawDriveKey(DriveKeys key) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyAvatar::relayDriveKeysToCharacterController() {
|
void MyAvatar::relayDriveKeysToCharacterController() {
|
||||||
if (getDriveKey(TRANSLATE_Y) > 0.0f) {
|
if (getDriveKey(TRANSLATE_Y) > 0.0f && (!qApp->isHMDMode() || useAdvancedMovementControls() && getFlyingHMDPref())) {
|
||||||
_characterController.jump();
|
_characterController.jump();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue