diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-17 14:46:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-17 14:46:02 +0400 |
commit | 02f707e9dac91d60f75ebd0ef48200cfb32c0d7d (patch) | |
tree | 99dcbd818d0c435108980b71faa18abdbcbeb2b2 /source/gameengine | |
parent | 1fc345cd326d10ceceb60d61bfd5c386f79b1ee5 (diff) |
minor mathutils code cleanup - use mathutils callbacks as unsigned chars everywhere.
Diffstat (limited to 'source/gameengine')
-rw-r--r-- | source/gameengine/Ketsji/KX_GameObject.cpp | 4 | ||||
-rw-r--r-- | source/gameengine/Ketsji/KX_ObjectActuator.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.cpp b/source/gameengine/Ketsji/KX_GameObject.cpp index 11129248338..43cd16340d0 100644 --- a/source/gameengine/Ketsji/KX_GameObject.cpp +++ b/source/gameengine/Ketsji/KX_GameObject.cpp @@ -1374,7 +1374,7 @@ void KX_GameObject::Relink(CTR_Map<CTR_HashedPtr, void*> *map_parameter) #define MATHUTILS_VEC_CB_ANGVEL_LOCAL 9 #define MATHUTILS_VEC_CB_ANGVEL_GLOBAL 10 -static int mathutils_kxgameob_vector_cb_index= -1; /* index for our callbacks */ +static unsigned char mathutils_kxgameob_vector_cb_index= -1; /* index for our callbacks */ static int mathutils_kxgameob_generic_check(BaseMathObject *bmo) { @@ -1514,7 +1514,7 @@ Mathutils_Callback mathutils_kxgameob_vector_cb = { #define MATHUTILS_MAT_CB_ORI_LOCAL 1 #define MATHUTILS_MAT_CB_ORI_GLOBAL 2 -static int mathutils_kxgameob_matrix_cb_index= -1; /* index for our callbacks */ +static unsigned char mathutils_kxgameob_matrix_cb_index= -1; /* index for our callbacks */ static int mathutils_kxgameob_matrix_get(BaseMathObject *bmo, int subtype) { diff --git a/source/gameengine/Ketsji/KX_ObjectActuator.cpp b/source/gameengine/Ketsji/KX_ObjectActuator.cpp index aed9ff2b81d..acd9cc53428 100644 --- a/source/gameengine/Ketsji/KX_ObjectActuator.cpp +++ b/source/gameengine/Ketsji/KX_ObjectActuator.cpp @@ -385,7 +385,7 @@ PyAttributeDef KX_ObjectActuator::Attributes[] = { #define MATHUTILS_VEC_CB_LINV 1 #define MATHUTILS_VEC_CB_ANGV 2 -static int mathutils_kxobactu_vector_cb_index= -1; /* index for our callbacks */ +static unsigned char mathutils_kxobactu_vector_cb_index = -1; /* index for our callbacks */ static int mathutils_obactu_generic_check(BaseMathObject *bmo) { @@ -496,7 +496,7 @@ int KX_ObjectActuator::pyattr_set_angV(void *self_v, const KX_PYATTRIBUTE_DEF *a void KX_ObjectActuator_Mathutils_Callback_Init(void) { // register mathutils callbacks, ok to run more then once. - mathutils_kxobactu_vector_cb_index= Mathutils_RegisterCallback(&mathutils_obactu_vector_cb); + mathutils_kxobactu_vector_cb_index = Mathutils_RegisterCallback(&mathutils_obactu_vector_cb); } #endif // USE_MATHUTILS |