From adfb198107109d8f3a680a761816be7762adc4f9 Mon Sep 17 00:00:00 2001 From: robojumper Date: Sat, 10 May 2025 21:38:13 +0200 Subject: [PATCH] Rely on compiler for bit tricks --- src/toBeSorted/d_emitter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/toBeSorted/d_emitter.cpp b/src/toBeSorted/d_emitter.cpp index 35dc0f5f..addf3d09 100644 --- a/src/toBeSorted/d_emitter.cpp +++ b/src/toBeSorted/d_emitter.cpp @@ -433,8 +433,7 @@ bool dParticleFogProc_c::create(u32 idx, s32 prioOpa, s32 prioXlu, mHeapAllocato return false; } mIdx = idx; - // idxes 0, 2, 4, 6, 10 - field_0x1C = idx <= 10 && ((1 << idx) & 0b10001010101) != 0; + field_0x1C = idx == 0 || idx == 2 || idx == 4 || idx == 6 || idx == 10; return true; }