summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2017-02-08 22:02:37 -0600
committerepoch <epoch@hacking.allowed.org>2017-02-08 22:02:37 -0600
commit15e1287f8bdd952ebce07fcd88381a9c2d836a61 (patch)
tree0f78fc96bc1d9fddd21c5a1b78cbc5a2d0a54b76
parent9e231504bdc32c814abbe914133587913040ccbe (diff)
downloadhackvr-15e1287f8bdd952ebce07fcd88381a9c2d836a61.tar.gz
hackvr-15e1287f8bdd952ebce07fcd88381a9c2d836a61.zip
made it so the config.h define for separation between cameras is actually used
-rw-r--r--src/config.h2
-rw-r--r--src/graphics.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/config.h b/src/config.h
index 16e2ec0..92960c5 100644
--- a/src/config.h
+++ b/src/config.h
@@ -9,7 +9,7 @@
#define DEBUG 1
#define WALK_SPEED 1
#define SPLIT_SCREEN 2
-#define CAMERA_SEPARATION 4
+#define CAMERA_SEPARATION .0125
#define RED_AND_BLUE 0
#define SHAPES 16386
#define MAX_SIDES 8
diff --git a/src/graphics.c b/src/graphics.c
index 17abb21..f8d2bf6 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -463,8 +463,8 @@ void draw_screen() {
//}
}
// XSetForeground(global.dpy, global.backgc, global.green.pixel);
- camera.p.z+=(gra_global.split_flip)*(gra_global.split*cosl(d2r(camera.yr.d+180)));
- camera.p.x+=(gra_global.split_flip)*(gra_global.split*sinl(d2r(camera.yr.d+180)));
+ camera.p.z+=(CAMERA_SEPARATION)*(gra_global.split_flip)*(gra_global.split*cosl(d2r(camera.yr.d+180)));
+ camera.p.x+=(CAMERA_SEPARATION)*(gra_global.split_flip)*(gra_global.split*sinl(d2r(camera.yr.d+180)));
}
//TODO: figure out what all this shit is and either update or remove.