1
0
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:
Tomi Lähteenmäki 2017-10-17 00:37:02 +03:00 committed by Daniel Evans
parent a347c07961
commit 4bf1d3795b

View File

@ -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),