recast and detour patch now builds again with GCC

- rearrange structs to work for 64bit
- define all vars before goto's
- ifdefs for qsort_r/qsort_s
- dont cast pointers to int only for NULL checks
- dont printf STR_String directly, get the char pointer from it

also minor change to gpu py module, no need to pass empty tuple to PyObject_CallObject, can just be NULL
This commit is contained in:
2011-09-10 03:07:26 +00:00
parent 23b843130b
commit 0128218254
8 changed files with 61 additions and 46 deletions

View File

@@ -282,7 +282,7 @@ bool KX_NavMeshObject::BuildNavMesh()
if (GetMeshCount()==0)
{
printf("Can't find mesh for navmesh object: %s \n", m_name);
printf("Can't find mesh for navmesh object: %s \n", m_name.ReadPtr());
return false;
}
@@ -294,7 +294,7 @@ bool KX_NavMeshObject::BuildNavMesh()
dmeshes, dvertices, ndvertsuniq, dtris, ndtris, vertsPerPoly )
|| vertsPerPoly<3)
{
printf("Can't build navigation mesh data for object:%s \n", m_name);
printf("Can't build navigation mesh data for object:%s \n", m_name.ReadPtr());
return false;
}