SF: don't clear tags with bunny and hbuffer.

This commit is contained in:
asofold 2012-11-06 02:12:51 +01:00
parent b2f513b1ad
commit 3bb18c5c35

View File

@ -124,8 +124,7 @@ public class SurvivalFly extends Check {
// Don't set "useWorkaround = x()", to avoid potential trouble with // Don't set "useWorkaround = x()", to avoid potential trouble with
// reordering to come, and similar. // reordering to come, and similar.
boolean useWorkaround = false; boolean useWorkaround = false;
boolean setBackSafe = false; // Let compiler remove this if boolean setBackSafe = false; // Let compiler remove this if necessary.
// necessary.
// Check for moving off stairs. // Check for moving off stairs.
if (!useWorkaround && from.isAboveStairs()) { if (!useWorkaround && from.isAboveStairs()) {
useWorkaround = true; useWorkaround = true;
@ -254,7 +253,6 @@ public class SurvivalFly extends Check {
if (data.bunnyhopDelay <= 0 && hDistanceAboveLimit > 0.05D && hDistanceAboveLimit < 0.28D) { if (data.bunnyhopDelay <= 0 && hDistanceAboveLimit > 0.05D && hDistanceAboveLimit < 0.28D) {
data.bunnyhopDelay = 9; data.bunnyhopDelay = 9;
hDistanceAboveLimit = 0D; hDistanceAboveLimit = 0D;
tags.clear();
tags.add("bunny"); // TODO: Which here... tags.add("bunny"); // TODO: Which here...
} }
@ -268,7 +266,6 @@ public class SurvivalFly extends Check {
data.horizontalBuffer = -hDistanceAboveLimit; data.horizontalBuffer = -hDistanceAboveLimit;
} }
if (hDistanceAboveLimit <= 0){ if (hDistanceAboveLimit <= 0){
tags.clear();
tags.add("hbuffer"); // TODO: ... tags.add("hbuffer"); // TODO: ...
} }
} else } else