aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-06-21 22:07:25 +0000
committerrodri <rgl@antares-labs.eu>2023-06-21 22:07:25 +0000
commit7c567087cfe43a5eadc3260782dfcbe4624c2415 (patch)
tree98f9131288951ea023717db291835189b8cc5cbd /main.c
parente70ecd9d84578dad435a39b40592f9a7cd1908d3 (diff)
downloadqball-7c567087cfe43a5eadc3260782dfcbe4624c2415.tar.gz
qball-7c567087cfe43a5eadc3260782dfcbe4624c2415.tar.bz2
qball-7c567087cfe43a5eadc3260782dfcbe4624c2415.zip
minor cleanup.HEADfront
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 57e5c71..37b0acc 100644
--- a/main.c
+++ b/main.c
@@ -191,7 +191,7 @@ redraw(void)
n = normvec3(crossvec(
subvec3(trans.p1, trans.p0),
subvec3(trans.p2, trans.p0)));
- if(dotvec3(n, subvec3(trans.p0, Vec3(0, 0, 0))) < 0){
+ if(dotvec3(n, trans.p0) < 0){
trans.p0 = mulvecm(trans.p0, proj);
trans.p1 = mulvecm(trans.p1, proj);
trans.p2 = mulvecm(trans.p2, proj);