mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 20:58:38 +02:00
Fix isInAir so takes into account the new seated state:
This commit is contained in:
parent
37f18e2e5e
commit
e0d0ec5852
1 changed files with 2 additions and 1 deletions
|
@ -4387,7 +4387,8 @@ bool MyAvatar::isFlying() {
|
||||||
|
|
||||||
bool MyAvatar::isInAir() {
|
bool MyAvatar::isInAir() {
|
||||||
// If Avatar is Hover, Falling, or Taking off, they are in Air.
|
// 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() {
|
bool MyAvatar::getFlyingEnabled() {
|
||||||
|
|
Loading…
Reference in a new issue