Some more clean-up and fixes
This commit is contained in:
@@ -3,7 +3,6 @@ using System.Numerics;
|
|||||||
|
|
||||||
public static partial class Detour
|
public static partial class Detour
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@defgroup detour Detour
|
@defgroup detour Detour
|
||||||
|
|
||||||
|
|||||||
@@ -730,7 +730,7 @@ public static partial class Detour
|
|||||||
|
|
||||||
void closestPointOnDetailEdges(bool onlyBoundary, dtMeshTile tile, dtPoly poly, float[] pos, float[] closest)
|
void closestPointOnDetailEdges(bool onlyBoundary, dtMeshTile tile, dtPoly poly, float[] pos, float[] closest)
|
||||||
{
|
{
|
||||||
uint ip = (uint)tile.polys.ToList().IndexOf(poly);
|
int ip = Array.IndexOf(tile.polys, poly);
|
||||||
dtPolyDetail pd = tile.detailMeshes[ip];
|
dtPolyDetail pd = tile.detailMeshes[ip];
|
||||||
|
|
||||||
float dmin = float.MaxValue;
|
float dmin = float.MaxValue;
|
||||||
@@ -789,7 +789,7 @@ public static partial class Detour
|
|||||||
if (poly.getType() == (byte)dtPolyTypes.DT_POLYTYPE_OFFMESH_CONNECTION)
|
if (poly.getType() == (byte)dtPolyTypes.DT_POLYTYPE_OFFMESH_CONNECTION)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
uint ip = (uint)Array.IndexOf(tile.polys, poly);
|
int ip = Array.IndexOf(tile.polys, poly);
|
||||||
dtPolyDetail pd = tile.detailMeshes[ip];
|
dtPolyDetail pd = tile.detailMeshes[ip];
|
||||||
|
|
||||||
float[] verts = new float[DT_VERTS_PER_POLYGON * 3];
|
float[] verts = new float[DT_VERTS_PER_POLYGON * 3];
|
||||||
@@ -849,7 +849,6 @@ public static partial class Detour
|
|||||||
|
|
||||||
public void closestPointOnPoly(dtPolyRef polyRef, float[] pos, float[] closest, ref bool posOverPoly)
|
public void closestPointOnPoly(dtPolyRef polyRef, float[] pos, float[] closest, ref bool posOverPoly)
|
||||||
{
|
{
|
||||||
|
|
||||||
dtMeshTile tile = new();
|
dtMeshTile tile = new();
|
||||||
dtPoly poly = new();
|
dtPoly poly = new();
|
||||||
getTileAndPolyByRefUnsafe(polyRef, ref tile, ref poly);
|
getTileAndPolyByRefUnsafe(polyRef, ref tile, ref poly);
|
||||||
|
|||||||
@@ -2124,7 +2124,7 @@ namespace Game.Chat
|
|||||||
|
|
||||||
if (args[0] == '[') // [name] manual form
|
if (args[0] == '[') // [name] manual form
|
||||||
{
|
{
|
||||||
string itemName = args.NextString("]");
|
string itemName = args.NextString("]").Substring(1);
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(itemName))
|
if (!string.IsNullOrEmpty(itemName))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -250,6 +250,9 @@ namespace Game.Entities
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!extraAttacksTargets.ContainsKey(targetGUID))
|
||||||
|
extraAttacksTargets[targetGUID] = 0;
|
||||||
|
|
||||||
extraAttacksTargets[targetGUID] += count;
|
extraAttacksTargets[targetGUID] += count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user