aboutsummaryrefslogtreecommitdiff
path: root/dep/recastnavigation/Recast/Recast.cpp
diff options
context:
space:
mode:
authorVincent_Michael <Vincent_Michael@gmx.de>2014-01-18 01:36:12 +0100
committerVincent_Michael <Vincent_Michael@gmx.de>2014-01-18 01:36:12 +0100
commitad8c046916262918b88917cbe4194a943ce75d16 (patch)
tree1bdf4a3995b184377229a767278771f4e533b828 /dep/recastnavigation/Recast/Recast.cpp
parent3276a786cc35f4dddcceedcab84fba5e77b78e58 (diff)
Core/Revert: ...
Diffstat (limited to 'dep/recastnavigation/Recast/Recast.cpp')
-rw-r--r--dep/recastnavigation/Recast/Recast.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/dep/recastnavigation/Recast/Recast.cpp b/dep/recastnavigation/Recast/Recast.cpp
index b9d86036c3f..803daac3bcf 100644
--- a/dep/recastnavigation/Recast/Recast.cpp
+++ b/dep/recastnavigation/Recast/Recast.cpp
@@ -208,11 +208,12 @@ void rcCalcGridSize(const float* bmin, const float* bmax, float cs, int* w, int*
/// See the #rcConfig documentation for more information on the configuration parameters.
///
/// @see rcAllocHeightfield, rcHeightfield
-bool rcCreateHeightfield(rcContext* ctx, rcHeightfield& hf, int width, int height,
+bool rcCreateHeightfield(rcContext* /*ctx*/, rcHeightfield& hf, int width, int height,
const float* bmin, const float* bmax,
float cs, float ch)
{
- rcIgnoreUnused(ctx);
+ // TODO: VC complains about unref formal variable, figure out a way to handle this better.
+// rcAssert(ctx);
hf.width = width;
hf.height = height;
@@ -244,12 +245,13 @@ static void calcTriNormal(const float* v0, const float* v1, const float* v2, flo
/// See the #rcConfig documentation for more information on the configuration parameters.
///
/// @see rcHeightfield, rcClearUnwalkableTriangles, rcRasterizeTriangles
-void rcMarkWalkableTriangles(rcContext* ctx, const float walkableSlopeAngle,
+void rcMarkWalkableTriangles(rcContext* /*ctx*/, const float walkableSlopeAngle,
const float* verts, int /*nv*/,
const int* tris, int nt,
unsigned char* areas)
{
- rcIgnoreUnused(ctx);
+ // TODO: VC complains about unref formal variable, figure out a way to handle this better.
+// rcAssert(ctx);
const float walkableThr = cosf(walkableSlopeAngle/180.0f*RC_PI);
@@ -273,12 +275,13 @@ void rcMarkWalkableTriangles(rcContext* ctx, const float walkableSlopeAngle,
/// See the #rcConfig documentation for more information on the configuration parameters.
///
/// @see rcHeightfield, rcClearUnwalkableTriangles, rcRasterizeTriangles
-void rcClearUnwalkableTriangles(rcContext* ctx, const float walkableSlopeAngle,
+void rcClearUnwalkableTriangles(rcContext* /*ctx*/, const float walkableSlopeAngle,
const float* verts, int /*nv*/,
const int* tris, int nt,
unsigned char* areas)
{
- rcIgnoreUnused(ctx);
+ // TODO: VC complains about unref formal variable, figure out a way to handle this better.
+// rcAssert(ctx);
const float walkableThr = cosf(walkableSlopeAngle/180.0f*RC_PI);
@@ -294,9 +297,10 @@ void rcClearUnwalkableTriangles(rcContext* ctx, const float walkableSlopeAngle,
}
}
-int rcGetHeightFieldSpanCount(rcContext* ctx, rcHeightfield& hf)
+int rcGetHeightFieldSpanCount(rcContext* /*ctx*/, rcHeightfield& hf)
{
- rcIgnoreUnused(ctx);
+ // TODO: VC complains about unref formal variable, figure out a way to handle this better.
+// rcAssert(ctx);
const int w = hf.width;
const int h = hf.height;