Fix for Issue 128 (third time the charm)

This commit is contained in:
Mikko Mononen
2010-10-10 10:15:44 +00:00
parent e441eca3c4
commit f5c3a8b609
5 changed files with 11 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ void duDebugDrawTriMeshSlope(duDebugDraw* dd, const float* verts, int /*nverts*/
if (!tris) return;
if (!normals) return;
const float walkableThr = cosf(walkableSlopeAngle/180.0f*(float)M_PI);
const float walkableThr = cosf(walkableSlopeAngle/180.0f*DU_PI);
dd->begin(DU_DRAW_TRIS);
for (int i = 0; i < ntris*3; i += 3)