Enabled double check for doors before normal checkMove.

This commit is contained in:
MobiusDev
2018-03-11 23:28:26 +00:00
parent 67cff0a256
commit cdbbd6dd18
7 changed files with 28 additions and 35 deletions

View File

@@ -1132,12 +1132,11 @@ public class GeoEngine
*/ */
public final Location canMoveToTargetLoc(int ox, int oy, int oz, int tx, int ty, int tz, Instance instance) public final Location canMoveToTargetLoc(int ox, int oy, int oz, int tx, int ty, int tz, Instance instance)
{ {
// Commented: Should be managed by MoveBackwardToLocation.
// Mobius: Double check for doors before normal checkMove to avoid exploiting key movement. // Mobius: Double check for doors before normal checkMove to avoid exploiting key movement.
// if (DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, instance, false)) if (DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, instance, false))
// { {
// return new GeoLocation(ox, oy, oz); return new GeoLocation(ox, oy, oz);
// } }
// get origin and check existing geo coordinates // get origin and check existing geo coordinates
final int gox = getGeoX(ox); final int gox = getGeoX(ox);

View File

@@ -1132,12 +1132,11 @@ public class GeoEngine
*/ */
public final Location canMoveToTargetLoc(int ox, int oy, int oz, int tx, int ty, int tz, Instance instance) public final Location canMoveToTargetLoc(int ox, int oy, int oz, int tx, int ty, int tz, Instance instance)
{ {
// Commented: Should be managed by MoveBackwardToLocation.
// Mobius: Double check for doors before normal checkMove to avoid exploiting key movement. // Mobius: Double check for doors before normal checkMove to avoid exploiting key movement.
// if (DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, instance, false)) if (DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, instance, false))
// { {
// return new GeoLocation(ox, oy, oz); return new GeoLocation(ox, oy, oz);
// } }
// get origin and check existing geo coordinates // get origin and check existing geo coordinates
final int gox = getGeoX(ox); final int gox = getGeoX(ox);

View File

@@ -1132,12 +1132,11 @@ public class GeoEngine
*/ */
public final Location canMoveToTargetLoc(int ox, int oy, int oz, int tx, int ty, int tz, Instance instance) public final Location canMoveToTargetLoc(int ox, int oy, int oz, int tx, int ty, int tz, Instance instance)
{ {
// Commented: Should be managed by MoveBackwardToLocation.
// Mobius: Double check for doors before normal checkMove to avoid exploiting key movement. // Mobius: Double check for doors before normal checkMove to avoid exploiting key movement.
// if (DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, instance, false)) if (DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, instance, false))
// { {
// return new GeoLocation(ox, oy, oz); return new GeoLocation(ox, oy, oz);
// } }
// get origin and check existing geo coordinates // get origin and check existing geo coordinates
final int gox = getGeoX(ox); final int gox = getGeoX(ox);

View File

@@ -1132,12 +1132,11 @@ public class GeoEngine
*/ */
public final Location canMoveToTargetLoc(int ox, int oy, int oz, int tx, int ty, int tz, Instance instance) public final Location canMoveToTargetLoc(int ox, int oy, int oz, int tx, int ty, int tz, Instance instance)
{ {
// Commented: Should be managed by MoveBackwardToLocation.
// Mobius: Double check for doors before normal checkMove to avoid exploiting key movement. // Mobius: Double check for doors before normal checkMove to avoid exploiting key movement.
// if (DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, instance, false)) if (DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, instance, false))
// { {
// return new GeoLocation(ox, oy, oz); return new GeoLocation(ox, oy, oz);
// } }
// get origin and check existing geo coordinates // get origin and check existing geo coordinates
final int gox = getGeoX(ox); final int gox = getGeoX(ox);

View File

@@ -1120,12 +1120,11 @@ public class GeoEngine
*/ */
public final Location canMoveToTargetLoc(int ox, int oy, int oz, int tx, int ty, int tz, int instanceId) public final Location canMoveToTargetLoc(int ox, int oy, int oz, int tx, int ty, int tz, int instanceId)
{ {
// Commented: Should be managed by MoveBackwardToLocation.
// Mobius: Double check for doors before normal checkMove to avoid exploiting key movement. // Mobius: Double check for doors before normal checkMove to avoid exploiting key movement.
// if (DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, instanceId, false)) if (DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, instanceId, false))
// { {
// return new GeoLocation(ox, oy, oz); return new Location(ox, oy, oz);
// } }
// get origin and check existing geo coordinates // get origin and check existing geo coordinates
final int gox = getGeoX(ox); final int gox = getGeoX(ox);

View File

@@ -1132,12 +1132,11 @@ public class GeoEngine
*/ */
public final Location canMoveToTargetLoc(int ox, int oy, int oz, int tx, int ty, int tz, Instance instance) public final Location canMoveToTargetLoc(int ox, int oy, int oz, int tx, int ty, int tz, Instance instance)
{ {
// Commented: Should be managed by MoveBackwardToLocation.
// Mobius: Double check for doors before normal checkMove to avoid exploiting key movement. // Mobius: Double check for doors before normal checkMove to avoid exploiting key movement.
// if (DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, instance, false)) if (DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, instance, false))
// { {
// return new GeoLocation(ox, oy, oz); return new GeoLocation(ox, oy, oz);
// } }
// get origin and check existing geo coordinates // get origin and check existing geo coordinates
final int gox = getGeoX(ox); final int gox = getGeoX(ox);

View File

@@ -1132,12 +1132,11 @@ public class GeoEngine
*/ */
public final Location canMoveToTargetLoc(int ox, int oy, int oz, int tx, int ty, int tz, Instance instance) public final Location canMoveToTargetLoc(int ox, int oy, int oz, int tx, int ty, int tz, Instance instance)
{ {
// Commented: Should be managed by MoveBackwardToLocation.
// Mobius: Double check for doors before normal checkMove to avoid exploiting key movement. // Mobius: Double check for doors before normal checkMove to avoid exploiting key movement.
// if (DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, instance, false)) if (DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, instance, false))
// { {
// return new GeoLocation(ox, oy, oz); return new GeoLocation(ox, oy, oz);
// } }
// get origin and check existing geo coordinates // get origin and check existing geo coordinates
final int gox = getGeoX(ox); final int gox = getGeoX(ox);