Skip to content

Commit

Permalink
Because the crash has been fixed, I suggest reducing the minimum dela…
Browse files Browse the repository at this point in the history
…y between the keys. Test here:https://youtu.be/fhWDUbgyYD4
  • Loading branch information
Tobirg committed Dec 4, 2022
1 parent fb27ed2 commit 2f4ab00
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scene/ibtnfuzzer_scene_run_attack.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ uint8_t id_list_cyfral[14][2] = {
};

void ibtnfuzzer_scene_run_attack_on_enter(iBtnFuzzerState* context) {
context->time_between_cards = 10;
context->time_between_cards = 8;
context->attack_step = 0;
context->key = ibutton_key_alloc();
context->worker = ibutton_worker_alloc();
Expand Down Expand Up @@ -362,7 +362,7 @@ void ibtnfuzzer_scene_run_attack_on_event(iBtnFuzzerEvent event, iBtnFuzzerState
break;
case InputKeyLeft:
if(!context->is_attacking) {
if(context->time_between_cards > 8) {
if(context->time_between_cards > 4) {
context->time_between_cards--;
}
}
Expand Down Expand Up @@ -408,8 +408,8 @@ void ibtnfuzzer_scene_run_attack_on_event(iBtnFuzzerEvent event, iBtnFuzzerState
switch(event.key) {
case InputKeyLeft:
if(!context->is_attacking) {
if(context->time_between_cards > 8) {
if((context->time_between_cards - 10) > 8) {
if(context->time_between_cards > 4) {
if((context->time_between_cards - 10) > 4) {
context->time_between_cards -= 10;
}
}
Expand Down

0 comments on commit 2f4ab00

Please sign in to comment.