diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-05-05 09:55:30 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-05-05 09:55:30 -0400 |
| commit | d67fca88b17120566a93004c99dadeef0a61964b (patch) | |
| tree | 63aeffab1044064d0e9a6b3b651ad05cbe420499 /src/main.rs | |
| parent | be2cf936ca48f3d638c3ef01f4e338dfc904c5e3 (diff) | |
| download | systemic4x-d67fca88b17120566a93004c99dadeef0a61964b.tar.gz systemic4x-d67fca88b17120566a93004c99dadeef0a61964b.tar.bz2 systemic4x-d67fca88b17120566a93004c99dadeef0a61964b.zip | |
fix label rendering over large bodies
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 4aeaa5e..fad750d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -87,11 +87,11 @@ impl GameState fn update( &mut self, - dt: Duration) + _dt: Duration) { let ticks = self.timeman.update(); ticks.iter().for_each(|time| { - solar_system::update_systems(self.solar_systems.iter_mut(), *time); + self.solar_systems.iter_mut().for_each(|system| { system.update(*time) }); }); } } @@ -111,7 +111,7 @@ impl ApplicationHandler for SystemicApp fn window_event( &mut self, event_loop: &ActiveEventLoop, - window_id: WindowId, + _window_id: WindowId, event: winit::event::WindowEvent, ) { let window = match &mut self.window { |
