Merge pull request #10 from solhuebner/patch-2

Attack should fire if threshold is reached
This commit is contained in:
bdring
2019-11-14 10:52:50 -06:00
committed by GitHub

View File

@@ -290,7 +290,7 @@ void loop() {
if(attacking && attackMillis+ATTACK_DURATION < mm) attacking = 0; if(attacking && attackMillis+ATTACK_DURATION < mm) attacking = 0;
// If not attacking, check if they should be // If not attacking, check if they should be
if(!attacking && joystickWobble > user_settings.attack_threshold){ if(!attacking && joystickWobble >= user_settings.attack_threshold){
attackMillis = mm; attackMillis = mm;
attacking = 1; attacking = 1;
} }