diff options
| author | engineer124 <47598039+engineer124@users.noreply.github.com> | 2023-12-13 15:16:24 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-13 15:16:24 +1100 |
| commit | 5607eec18bae68e4cd38ef6d1fa69d7f1d84bfc8 (patch) | |
| tree | bb13ad49718f8883bc65d7bd0a9db4d791800cf2 /src/code/z_quake.c | |
| parent | ed4da0ecef698ad0112c7cdf575368ac3c61903b (diff) | |
Use more `TRUNCF_BINANG` for f32 -> s16 casts (#1503)
* TRUNCF_BINANG
* brackets
* extra cast
Diffstat (limited to 'src/code/z_quake.c')
| -rw-r--r-- | src/code/z_quake.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/code/z_quake.c b/src/code/z_quake.c index 9423983e1..c4b6e6782 100644 --- a/src/code/z_quake.c +++ b/src/code/z_quake.c @@ -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++; |
