From 02f707e9dac91d60f75ebd0ef48200cfb32c0d7d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 17 Mar 2012 10:46:02 +0000 Subject: minor mathutils code cleanup - use mathutils callbacks as unsigned chars everywhere. --- source/gameengine/Ketsji/KX_GameObject.cpp | 4 ++-- source/gameengine/Ketsji/KX_ObjectActuator.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source/gameengine/Ketsji') 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 *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 -- cgit v1.2.3