mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 02:12:45 +01:00
Fix jumping in newer bullet version (#328)
* Fix jumping in newer bullet version * Added check for bullet version jump() was changed in bullet version 2.84
This commit is contained in:
parent
a347c07961
commit
4bf1d3795b
@ -472,7 +472,11 @@ bool CharacterObject::takeDamage(const GameObject::DamageInfo& dmg) {
|
||||
|
||||
void CharacterObject::jump() {
|
||||
if (physCharacter) {
|
||||
#if BT_BULLET_VERSION < 285
|
||||
physCharacter->jump();
|
||||
#else
|
||||
physCharacter->jump(btVector3(0.f, 0.f, 0.f));
|
||||
#endif
|
||||
jumped = true;
|
||||
animator->playAnimation(AnimIndexMovement,
|
||||
animations->animation(AnimCycle::JumpLaunch),
|
||||
|
Loading…
Reference in New Issue
Block a user