Removed unused boolean parameter.
This commit is contained in:
@@ -1271,10 +1271,9 @@ public class GeoEngine
|
||||
* @param ty : target y
|
||||
* @param tz : target z
|
||||
* @param instanceId
|
||||
* @param playable : moving object is playable?
|
||||
* @return {@code List<Location>} : complete path from nodes
|
||||
*/
|
||||
public List<Location> findPath(int ox, int oy, int oz, int tx, int ty, int tz, int instanceId, boolean playable)
|
||||
public List<Location> findPath(int ox, int oy, int oz, int tx, int ty, int tz, int instanceId)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
@@ -64,7 +64,7 @@ final class GeoEnginePathfinding extends GeoEngine
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Location> findPath(int ox, int oy, int oz, int tx, int ty, int tz, int instance, boolean playable)
|
||||
public List<Location> findPath(int ox, int oy, int oz, int tx, int ty, int tz, int instance)
|
||||
{
|
||||
// get origin and check existing geo coords
|
||||
int gox = getGeoX(ox);
|
||||
@@ -87,7 +87,7 @@ final class GeoEnginePathfinding extends GeoEngine
|
||||
short gtz = getHeightNearest(gtx, gty, tz);
|
||||
|
||||
// Prepare buffer for pathfinding calculations
|
||||
NodeBuffer buffer = getBuffer(64 + (2 * Math.max(Math.abs(gox - gtx), Math.abs(goy - gty))), playable);
|
||||
final NodeBuffer buffer = getBuffer(64 + (2 * Math.max(Math.abs(gox - gtx), Math.abs(goy - gty))));
|
||||
if (buffer == null)
|
||||
{
|
||||
return null;
|
||||
@@ -212,10 +212,9 @@ final class GeoEnginePathfinding extends GeoEngine
|
||||
/**
|
||||
* Provides optimize selection of the buffer. When all pre-initialized buffer are locked, creates new buffer.
|
||||
* @param size : pre-calculated minimal required size
|
||||
* @param playable : moving object is playable?
|
||||
* @return NodeBuffer : buffer
|
||||
*/
|
||||
private final NodeBuffer getBuffer(int size, boolean playable)
|
||||
private final NodeBuffer getBuffer(int size)
|
||||
{
|
||||
NodeBuffer current = null;
|
||||
for (BufferHolder holder : _buffers)
|
||||
|
Reference in New Issue
Block a user