From db6f9a15489cbd827c0994401f9f389ec59dcb0f Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 8 Apr 2024 01:14:08 +0200 Subject: [PATCH] optimization --- src/world.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world.rs b/src/world.rs index 8e61c1a..b76fc2f 100644 --- a/src/world.rs +++ b/src/world.rs @@ -125,10 +125,10 @@ pub fn setup( let mut starcount = 0; for star in stars::STARS { let mag = star.3; - let is_sun = mag < -20.0; if mag > STARS_MAX_MAGNITUDE { continue; } + let is_sun = mag < -20.0; let scale_color = {|color: f32| if is_sun { color * 13.0f32