Skip to content

Commit

Permalink
tweak load_remover reset order
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKnauth committed Feb 5, 2024
1 parent 3114c3e commit 93ebbd7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ async fn tick_action(
}
SplitterAction::Reset => {
*i = 0;
load_remover.reset();
splitter_action(SplitterAction::Reset, i, n);
load_remover.reset();
break;
}
SplitterAction::ManualSplit => {
Expand All @@ -172,8 +172,8 @@ async fn tick_action(
match splits::splits(&splits[0], &process, &game_manager_finder, trans_now, scene_store, player_data_store) {
SplitterAction::Split | SplitterAction::Reset => {
*i = 0;
load_remover.reset();
splitter_action(SplitterAction::Split, i, n);
load_remover.reset();
}
_ => (),
}
Expand Down Expand Up @@ -375,6 +375,7 @@ impl HitCounter {

fn reset(&mut self) {
self.hits = 0;
asr::timer::pause_game_time();
asr::timer::set_game_time(Duration::seconds(0));
asr::timer::set_variable_int("hits", 0);
}
Expand Down

0 comments on commit 93ebbd7

Please sign in to comment.