mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-16 22:40:04 -04:00
Use more TRUNCF_BINANG for f32 -> s16 casts (#1503)
* TRUNCF_BINANG * brackets * extra cast
This commit is contained in:
+1
-1
@@ -184,7 +184,7 @@ QuakeRequest* Quake_RequestImpl(Camera* camera, u32 type) {
|
||||
|
||||
// Add a unique random identifier to the upper bits of the index
|
||||
// The `~3` assumes there are only 4 requests
|
||||
req->index = index + ((s16)(Rand_ZeroOne() * 0x10000) & ~3);
|
||||
req->index = index + (TRUNCF_BINANG(Rand_ZeroOne() * 0x10000) & ~3);
|
||||
|
||||
sQuakeRequestCount++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user