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
This commit is contained in:
2015-10-11 18:28:43 +02:00
parent 88005475db
commit 3dd83b533a
10 changed files with 21 additions and 4 deletions

View File

@@ -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;
}