diff --git a/src/DotRecast.Recast.Demo/Draw/DebugDraw.cs b/src/DotRecast.Recast.Demo/Draw/DebugDraw.cs index f82defc..7ffee95 100644 --- a/src/DotRecast.Recast.Demo/Draw/DebugDraw.cs +++ b/src/DotRecast.Recast.Demo/Draw/DebugDraw.cs @@ -624,7 +624,7 @@ public class DebugDraw public static int DuDarkenCol(int col) { - return (int)(((col >> 1) & 0x007f7f7f) | (col & 0xff000000)); + return (int)((uint)((col >> 1) & 0x007f7f7f) | (col & 0xff000000)); } diff --git a/src/DotRecast.Recast.Toolset/Tools/RcObstacleTool.cs b/src/DotRecast.Recast.Toolset/Tools/RcObstacleTool.cs index 5931f74..ec0e06d 100644 --- a/src/DotRecast.Recast.Toolset/Tools/RcObstacleTool.cs +++ b/src/DotRecast.Recast.Toolset/Tools/RcObstacleTool.cs @@ -30,8 +30,6 @@ namespace DotRecast.Recast.Toolset.Tools public NavMeshBuildResult Build(IInputGeomProvider geom, RcNavMeshBuildSettings setting, RcByteOrder order, bool cCompatibility) { - DtStatus status; - if (null == geom || null == geom.GetMesh()) { //m_ctx->log(RC_LOG_ERROR, "buildTiledNavigation: No vertices and triangles.");