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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user