use <=
parent
7d2f9289f8
commit
73ef87366a
|
@ -292,7 +292,7 @@ namespace OpenSim.Modules.PathFinding
|
|||
_PointB = start;
|
||||
}
|
||||
|
||||
while ((int)_PointA.X != (int)_PointB.X)
|
||||
while ((int)_PointA.X <= (int)_PointB.X)
|
||||
{
|
||||
setPositionData(requestData, _PointA, walkable, 0);
|
||||
_PointA.X = (int)_PointA.X + 1;
|
||||
|
@ -313,7 +313,7 @@ namespace OpenSim.Modules.PathFinding
|
|||
_PointB = start;
|
||||
}
|
||||
|
||||
while ((int)_PointA.Y != (int)_PointB.Y)
|
||||
while ((int)_PointA.Y <= (int)_PointB.Y)
|
||||
{
|
||||
setPositionData(requestData, _PointA, walkable, 0);
|
||||
_PointA.Y = (int)_PointA.Y + 1;
|
||||
|
|
Loading…
Reference in New Issue