mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 18:44:00 +02:00
Remove one change, turned out to be unnecessary.
This commit is contained in:
parent
3080539b63
commit
8d65e14193
1 changed files with 2 additions and 2 deletions
|
@ -2822,6 +2822,7 @@ void MyAvatar::setFlyingEnabled(bool enabled) {
|
|||
return;
|
||||
}
|
||||
|
||||
// Flying should always be enabled for desktop users, preference may be set for HMD.
|
||||
_enableFlying = enabled;
|
||||
}
|
||||
|
||||
|
@ -2837,8 +2838,7 @@ bool MyAvatar::isInAir() {
|
|||
|
||||
bool MyAvatar::getFlyingEnabled() {
|
||||
// May return true even if client is not allowed to fly in the zone.
|
||||
// Should always return true if in desktop mode.
|
||||
return (qApp->isHMDMode()) ? _enableFlying : true;
|
||||
return _enableFlying;
|
||||
}
|
||||
|
||||
// Public interface for targetscale
|
||||
|
|
Loading…
Reference in a new issue