Improve Fastplace with little tidbits each day.

This commit is contained in:
Super Spy committed 2012-05-23 08:25:21 -05:00
1 parent 287fd3f293
commit ae41d9c21e
1 file changed
+4 -4
@@ -47,7 +47,7 @@ public class Backend
public static final int FASTBREAK_MAXVIOLATIONTIME = 10000; public static final int FASTBREAK_MAXVIOLATIONTIME = 10000;
public static final int FASTPLACE_LIMIT = 2; public static final int FASTPLACE_LIMIT = 2;
public static final int FASTPLACE_ZEROLIMIT = 3; public static final int FASTPLACE_ZEROLIMIT = 3;
public static final int FASTPLACE_TIMEMAX = 100; public static final int FASTPLACE_TIMEMAX = 80;
public static final int FASTPLACE_MAXVIOLATIONS = 2; public static final int FASTPLACE_MAXVIOLATIONS = 2;
public static final int FASTPLACE_MAXVIOLATIONTIME = 10000; public static final int FASTPLACE_MAXVIOLATIONTIME = 10000;
@@ -379,11 +379,11 @@ public class Backend
} }
else else
{ {
lastZeroHitPlace.put(name, lastZeroHitPlace.get(name)+1); lastZeroHitPlace.put(name, lastZeroHitPlace.get(name)+1);
} }
} }
if(!nocheck && thisTime < FASTPLACE_TIMEMAX && lastTime < FASTPLACE_TIMEMAX if(thisTime < FASTPLACE_TIMEMAX && lastTime < FASTPLACE_TIMEMAX
&& lastZeroHitPlace.get(name) > FASTPLACE_ZEROLIMIT) || nocheck && lastZeroHitPlace.get(name) > FASTPLACE_ZEROLIMIT)
{ {
lastBlockPlaceTime.put(name, (time-last)); lastBlockPlaceTime.put(name, (time-last));
lastBlockPlaced.put(name, time); lastBlockPlaced.put(name, time);