Skip to content

Commit

Permalink
update fixed timestep
Browse files Browse the repository at this point in the history
  • Loading branch information
JoJoJet committed Jul 29, 2022
1 parent c0c5fae commit 55d9e7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_time/src/fixed_timestep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl TimestepAppExt for App {
panic(label)
}

let runner = move |s: &mut S, w: &mut World| {
let runner = move |s: &mut dyn Stage, w: &mut World| {
let mut state = *w.resource::<FixedTimesteps>().get(label).unwrap();

// Core looping functionality.
Expand All @@ -85,7 +85,7 @@ impl TimestepAppExt for App {
step,
accumulator: 0.0,
};
let runner = move |sched: &mut S, w: &mut World| {
let runner = move |sched: &mut dyn Stage, w: &mut World| {
// Core looping functionality.
let time = w.resource::<Time>();
state.accumulator += time.delta_seconds_f64();
Expand Down

0 comments on commit 55d9e7f

Please sign in to comment.