mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 02:53:43 +02:00
Merge pull request #4637 from AndrewMeadows/thermonuclear
fix bug where fly speed is limited to walk speed
This commit is contained in:
commit
aad45fbec4
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,6 @@ void DynamicCharacterController::setEnabled(bool enabled) {
|
|||
// Don't bother clearing REMOVE bit since it might be paired with an UPDATE_SHAPE bit.
|
||||
// Setting the ADD bit here works for all cases so we don't even bother checking other bits.
|
||||
_pendingFlags |= PENDING_FLAG_ADD_TO_SIMULATION;
|
||||
setHovering(true);
|
||||
} else {
|
||||
if (_dynamicsWorld) {
|
||||
_pendingFlags |= PENDING_FLAG_REMOVE_FROM_SIMULATION;
|
||||
|
@ -253,6 +252,7 @@ void DynamicCharacterController::setEnabled(bool enabled) {
|
|||
_pendingFlags &= ~ PENDING_FLAG_ADD_TO_SIMULATION;
|
||||
_isOnGround = false;
|
||||
}
|
||||
setHovering(true);
|
||||
_enabled = enabled;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue