From e17b14e17d885d004c14f358cfeb8fd931662f0c Mon Sep 17 00:00:00 2001 From: asofold Date: Fri, 9 Aug 2013 16:32:07 +0200 Subject: [PATCH] SF: Start with hbuf at 0 (reverts setting to 1/2 of max). --- .../nocheatplus/checks/moving/MovingData.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingData.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingData.java index 7c4bcc3a..79e87cfd 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingData.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/moving/MovingData.java @@ -118,9 +118,6 @@ public class MovingData extends ACheckData { public final List hVelActive = new LinkedList(); /** Queued velocity entries (horizontal distance). */ public final List hVelQueued = new LinkedList(); -// public int horizontalVelocityCounter; -// public double horizontalFreedom; -// public int horizontalVelocityUsed = 0; // Coordinates. /** Last from coordinates. */ @@ -201,9 +198,6 @@ public class MovingData extends ACheckData { // HOT FIX /** Inconsistency-flag. Set on moving inside of vehicles, reset on exiting properly. Workaround for VehicleLeaveEvent missing. */ public boolean wasInVehicle = false; - - -// public final Stats stats = new Stats(); // Test. /** * Clear the data of the fly checks (not more-packets). @@ -546,10 +540,11 @@ public class MovingData extends ACheckData { verticalVelocityUsed ++; verticalVelocityCounter--; } - else if (verticalVelocityCounter > 0D) { + else if (verticalVelocityCounter > 0) { verticalVelocityUsed ++; verticalFreedom += verticalVelocity; verticalVelocity = Math.max(0.0, verticalVelocity -0.09); + // TODO: Consider using up counter ? / better use velocity entries / even better use x,y,z entries right away . } else if (verticalFreedom > 0.001D){ if (verticalVelocityUsed == 1 && verticalVelocity > 1.0){ // Workarounds.