mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:03:53 +02:00
Merge pull request #16283 from luiscuenca/fixInAirWhileSitting
DEV-2217: Fix MyAvatar::isInAir() so takes into account the new seated state
This commit is contained in:
commit
0b5299162b
1 changed files with 2 additions and 1 deletions
|
@ -4387,7 +4387,8 @@ bool MyAvatar::isFlying() {
|
|||
|
||||
bool MyAvatar::isInAir() {
|
||||
// If Avatar is Hover, Falling, or Taking off, they are in Air.
|
||||
return _characterController.getState() != CharacterController::State::Ground;
|
||||
return _characterController.getState() != CharacterController::State::Ground &&
|
||||
_characterController.getState() != CharacterController::State::Seated;
|
||||
}
|
||||
|
||||
bool MyAvatar::getFlyingEnabled() {
|
||||
|
|
Loading…
Reference in a new issue