mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 19:02:55 +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.
|
// 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.
|
// Setting the ADD bit here works for all cases so we don't even bother checking other bits.
|
||||||
_pendingFlags |= PENDING_FLAG_ADD_TO_SIMULATION;
|
_pendingFlags |= PENDING_FLAG_ADD_TO_SIMULATION;
|
||||||
setHovering(true);
|
|
||||||
} else {
|
} else {
|
||||||
if (_dynamicsWorld) {
|
if (_dynamicsWorld) {
|
||||||
_pendingFlags |= PENDING_FLAG_REMOVE_FROM_SIMULATION;
|
_pendingFlags |= PENDING_FLAG_REMOVE_FROM_SIMULATION;
|
||||||
|
@ -253,6 +252,7 @@ void DynamicCharacterController::setEnabled(bool enabled) {
|
||||||
_pendingFlags &= ~ PENDING_FLAG_ADD_TO_SIMULATION;
|
_pendingFlags &= ~ PENDING_FLAG_ADD_TO_SIMULATION;
|
||||||
_isOnGround = false;
|
_isOnGround = false;
|
||||||
}
|
}
|
||||||
|
setHovering(true);
|
||||||
_enabled = enabled;
|
_enabled = enabled;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue