From 368facacc7022ee179d294237a75565d21515ccb Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 7 Sep 2023 16:14:56 -0700 Subject: [PATCH] fix order of operations --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 13e8b062..d9bb9478 100644 --- a/src/main.rs +++ b/src/main.rs @@ -307,7 +307,7 @@ impl strafe_client::framework::Example for Skybox { for end_index in 2..4 { for &index in &[0, end_index - 1, end_index] { let vert = face*4+index; - let unique_id=vert * 1<<0 + index * 1<<8 + face * 1<<16; + let unique_id=(vert * 1<<0) + (index * 1<<8) + (face * 1<<16); if let Some(&i)=vertex_index.get(&unique_id){ indices.push(i as u16); }else{