Velocity: Decrease validity counter once activated.

This commit is contained in:
asofold 2013-03-13 02:55:54 +01:00
parent bb38ff5a1b
commit 1ad08b3729

View File

@ -467,7 +467,7 @@ public class MovingData extends ACheckData {
public void velocityTick(){
// Decrease counts for active.
for (final Velocity vel : hVelActive){
vel.actCount --;
vel.valCount --;
vel.sum += vel.value;
vel.value *= 0.9; // TODO: Actual friction.
}