Skip to content

Commit

Permalink
Move action processing
Browse files Browse the repository at this point in the history
Code review fix
  • Loading branch information
Froggy618157725 committed Jul 7, 2024
1 parent 4b7c924 commit b21cb22
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crates/alkahest/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,6 @@ impl AlkahestApp {
});
}
WindowEvent::RedrawRequested => {
{
let mut action_list = resources.get_mut::<ActionList>();
action_list.process(&resources);
}
resources.get_mut::<SelectedEntity>().changed_this_frame = false;
renderer.data.lock().asset_manager.poll();
{
Expand All @@ -324,6 +320,11 @@ impl AlkahestApp {
});
}

{
let mut action_list = resources.get_mut::<ActionList>();
action_list.process(&resources);
}

resources
.get_mut::<Camera>()
.update(&resources.get::<InputState>(), renderer.delta_time as f32);
Expand Down

0 comments on commit b21cb22

Please sign in to comment.