summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-04-03 02:46:25 -0500
committerepoch <epoch@hacking.allowed.org>2020-04-03 02:46:25 -0500
commit644b0ed4ab3a021982c37b15e8a15da3da964565 (patch)
treea2bb3a19510109e4a5265ff872d99c4dfecdfada
parente9d4659025c54455048e5c6ae3635efa25030e09 (diff)
downloadhackvr-644b0ed4ab3a021982c37b15e8a15da3da964565.tar.gz
hackvr-644b0ed4ab3a021982c37b15e8a15da3da964565.zip
added the camera to the group_rots
-rw-r--r--src/graphics_c3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/graphics_c3.c b/src/graphics_c3.c
index 31406b2..dd45fb9 100644
--- a/src/graphics_c3.c
+++ b/src/graphics_c3.c
@@ -487,6 +487,7 @@ int graphics_init() {//return the fd needed to read graphics events.
global.shape[0]=0;//we'll allocate as we need more.
global.camera.id=strdup(global.user);//make a copy so if we change global.user later we can reattach to this camera.
global.group_rot[0]=&global.camera;
+ ht_setkey(&global.ht_group,global.user,&global.camera);//merp. this will probably break when you try to change global.user to anything else.
global.group_rot[1]=0;//why do we have the camera in here? we need to prevent this from getting deleted.
global.camera.p.x=0;