summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXANTRONIX Development2022-03-11 19:27:18 -0500
committerXANTRONIX Development2022-03-11 19:27:18 -0500
commit2e67d94e4f62f620c5157a848396ab69b2f56e51 (patch)
treec4d0dd78ba3cf85dfa16f5bf9a0810cbe2ce46d5 /src
parentf0629d517f4a7cc5df79f9a1e752c631f7366b23 (diff)
downloadxas-2e67d94e4f62f620c5157a848396ab69b2f56e51.tar.gz
xas-2e67d94e4f62f620c5157a848396ab69b2f56e51.tar.bz2
xas-2e67d94e4f62f620c5157a848396ab69b2f56e51.zip
don't do floating point cast/div, ya dingus
Diffstat (limited to 'src')
-rw-r--r--src/spatial.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/spatial.c b/src/spatial.c
index 502c0f4..e730ee0 100644
--- a/src/spatial.c
+++ b/src/spatial.c
@@ -277,17 +277,17 @@ ssize_t scene_fill(xas_spatial_scene *scene,
if (!within_cone_l) {
if (within_cone_r) {
- value_l /= 8.0f;
+ value_l /= 8;
} else {
- value_l /= 3.0f;
+ value_l /= 3;
}
}
if (!within_cone_r) {
if (within_cone_l) {
- value_r /= 8.0f;
+ value_r /= 8;
} else {
- value_r /= 3.0f;
+ value_r /= 3;
}
}