Skip to content

Commit

Permalink
ensure all playback systems happen after frame_counter
Browse files Browse the repository at this point in the history
  • Loading branch information
snendev committed Aug 22, 2024
1 parent 1794b75 commit 5b388d1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/input_playback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,17 @@ impl Plugin for InputPlaybackPlugin {
.add_event::<EndInputPlayback>()
.add_systems(
First,
(handle_end_playback_event, initiate_input_playback).chain(),
(handle_end_playback_event, initiate_input_playback)
.after(frame_counter)
.chain(),
)
.add_systems(
First,
playback_timestamped_input
.run_if(resource_exists::<PlaybackProgress>)
.after(frame_counter)
.run_if(
resource_exists::<PlaybackProgress>
.and_then(resource_exists::<TimestampedInputs>),
)
.after(initiate_input_playback),
);
}
Expand Down

0 comments on commit 5b388d1

Please sign in to comment.