Skip to content

Commit

Permalink
Fixed incorrect span clamp.
Browse files Browse the repository at this point in the history
  • Loading branch information
awgil committed Apr 25, 2024
1 parent 7bd2b28 commit 35dea72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vnavmesh/NavmeshRasterizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public bool RasterizeMesh(SceneExtractor.Mesh mesh, SceneExtractor.MeshInstance
if (y1 < 0 || y0 >= _maxY)
continue;
y0 = Math.Clamp(y0, 0, _maxY - 1);
y1 = Math.Clamp(y1, y0 + 1, _maxY - 1);
y1 = Math.Clamp(y1, y0, _maxY - 1);

AddSpan(x, z, y0, y1, areaId, realSolid);

Expand Down

0 comments on commit 35dea72

Please sign in to comment.