From 4f3804ae3d832da6b19330074e404b8a06c1f869 Mon Sep 17 00:00:00 2001 From: ikpil Date: Sun, 10 Sep 2023 10:10:47 +0900 Subject: [PATCH] typo --- src/DotRecast.Recast.Demo/Draw/DebugDraw.cs | 2 +- src/DotRecast.Recast.Toolset/Tools/RcObstacleTool.cs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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.");