summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/graphics_c3.c6
-rw-r--r--src/hackvr.c3
2 files changed, 6 insertions, 3 deletions
diff --git a/src/graphics_c3.c b/src/graphics_c3.c
index e85b9de..46f71fc 100644
--- a/src/graphics_c3.c
+++ b/src/graphics_c3.c
@@ -208,9 +208,9 @@ void draw_c3_shape(c3_s_t s) {//outlined. needs to be filled? //draw minimap shi
//s2.p[i]=c3_add(gr->p,rotate_c3_yr(s.p[i],gr->p,d2r(gr->r.y)));
s2.p[i]=c3_add(gr->p,rotate_c3_xr(
rotate_c3_yr(
- rotate_c3_zr(s.p[i],gr->p,d2r(gr->r.z)
- ),gr->p,d2r(gr->r.y)
- ),gr->p,d2r(gr->r.x)
+ rotate_c3_zr(s.p[i],(c3_t){0,0,0},d2r(gr->r.z)
+ ),(c3_t){0,0,0},d2r(gr->r.y)
+ ),(c3_t){0,0,0},d2r(gr->r.x)
)
);
} else {
diff --git a/src/hackvr.c b/src/hackvr.c
index 5209376..ec8a5da 100644
--- a/src/hackvr.c
+++ b/src/hackvr.c
@@ -531,6 +531,9 @@ int hackvr_handler(char *line) {
global.group_rot[i]->r.x=(degrees){0};//only set these if new.
global.group_rot[i]->r.y=(degrees){0};
global.group_rot[i]->r.z=(degrees){0};
+ global.group_rot[i]->p.x=0;//why were these not set before?
+ global.group_rot[i]->p.y=0;
+ global.group_rot[i]->p.z=0;
}
}
if(len > 4) { //if we have > 4 we're doing relative movement