Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Szepe <HG1_public@gmx.net>2015-10-11 19:28:43 +0300
committerThomas Szepe <HG1_public@gmx.net>2015-10-11 19:28:43 +0300
commit3dd83b533a032fe4e5e39a275e7f2fcff2beaf15 (patch)
tree279d9ffbd0b8ab0a1c2d723621b119c229fff66b /source/gameengine/Ketsji
parent88005475db5a774edfc3c408b553b04379dbd147 (diff)
BGE: Adding a Max Jumps value to the character physic window
Actually we only have a Python API that allows to change the max jumps value. The patch also allows non programmers to change the maximum numbers of jumps. Reviewers: panzergame, sybren, campbellbarton, lordloki, moguri, agoose77 Reviewed By: lordloki, moguri Projects: #game_engine Differential Revision: https://developer.blender.org/D1302
Diffstat (limited to 'source/gameengine/Ketsji')
-rw-r--r--source/gameengine/Ketsji/KX_CharacterWrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_CharacterWrapper.cpp b/source/gameengine/Ketsji/KX_CharacterWrapper.cpp
index d777ae7ec80..44f06a9f1eb 100644
--- a/source/gameengine/Ketsji/KX_CharacterWrapper.cpp
+++ b/source/gameengine/Ketsji/KX_CharacterWrapper.cpp
@@ -119,7 +119,7 @@ int KX_CharacterWrapper::pyattr_set_max_jumps(void *self_v, const KX_PYATTRIBUTE
CLAMP(param, 0, 255);
- self->m_character->SetMaxJumps((unsigned char)param);
+ self->m_character->SetMaxJumps(param);
return PY_SET_ATTR_SUCCESS;
}