@@ -362,9 +362,9 @@ void overworld_navigation(
362362 if (movement_mode == NavigationMovementMode::CLEAR_WITH_LETS_GO){
363363 walk_forward_while_clear_front_path (info, stream, context, forward_ticks, y);
364364 }else {
365- ssf_press_left_joystick (context, x, y, 0 , seconds_realign * TICKS_PER_SECOND );
365+ ssf_press_left_joystick (context, x, y, 0ms, Seconds ( seconds_realign) );
366366 if (movement_mode == NavigationMovementMode::DIRECTIONAL_ONLY){
367- pbf_wait (context, seconds_realign * TICKS_PER_SECOND );
367+ pbf_wait (context, Seconds ( seconds_realign) );
368368 } else if (movement_mode == NavigationMovementMode::DIRECTIONAL_SPAM_A){
369369 for (size_t j = 0 ; j < 5 * seconds_realign; j++){
370370 pbf_press_button (context, BUTTON_A, 20 , 5 );
@@ -1063,9 +1063,9 @@ void press_A_until_dialog(
10631063 int ret = run_until<ProControllerContext>(
10641064 stream, context,
10651065 [seconds_between_button_presses](ProControllerContext& context){
1066- pbf_wait (context, seconds_between_button_presses * TICKS_PER_SECOND ); // avoiding pressing A if dialog already present
1066+ pbf_wait (context, Seconds ( seconds_between_button_presses) ); // avoiding pressing A if dialog already present
10671067 for (size_t c = 0 ; c < 10 ; c++){
1068- pbf_press_button (context, BUTTON_A, 20 , seconds_between_button_presses * TICKS_PER_SECOND );
1068+ pbf_press_button (context, BUTTON_A, 20 *8ms, Seconds ( seconds_between_button_presses) );
10691069 }
10701070 },
10711071 {advance_dialog}
0 commit comments