From 2bd9506ca2293327d8fc955be11c8a9abd008157 Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Wed, 26 Jan 2022 14:26:02 -0800 Subject: [PATCH] Drop light count to avoid panic. There was a fix in the git version for this panic, but not in the latest release yet. --- src/lights.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lights.rs b/src/lights.rs index 3a3d046..252c5f1 100644 --- a/src/lights.rs +++ b/src/lights.rs @@ -23,7 +23,7 @@ fn spawn_moving_lights( ) { let rng = &mut thread_rng(); // spawn orbiting bisexual lights - for _ in 0..511 { + for _ in 0..255 { // mechanics let axis = crate::random_unit_vec(rng); let angle = rng.gen_range(0.0..TAU);