Pass g3_point_2_vec v by &
This commit is contained in:
parent
2434b20445
commit
d0dd976fdb
|
@ -109,7 +109,7 @@ void g3_project_point(g3s_point *p)
|
|||
}
|
||||
|
||||
//from a 2d point, compute the vector through that point
|
||||
void g3_point_2_vec(vms_vector *v,short sx,short sy)
|
||||
void g3_point_2_vec(vms_vector &v,short sx,short sy)
|
||||
{
|
||||
vms_vector tempv;
|
||||
vms_matrix tempm;
|
||||
|
@ -120,8 +120,7 @@ void g3_point_2_vec(vms_vector *v,short sx,short sy)
|
|||
|
||||
vm_vec_normalize(tempv);
|
||||
tempm = vm_transposed_matrix(Unscaled_matrix);
|
||||
vm_vec_rotate(*v,tempv,tempm);
|
||||
|
||||
vm_vec_rotate(v,tempv,tempm);
|
||||
}
|
||||
|
||||
//delta rotation functions
|
||||
|
|
|
@ -161,7 +161,7 @@ void g3_project_point(g3s_point *point);
|
|||
fix g3_calc_point_depth(const vms_vector *pnt);
|
||||
|
||||
//from a 2d point, compute the vector through that point
|
||||
void g3_point_2_vec(vms_vector *v,short sx,short sy);
|
||||
void g3_point_2_vec(vms_vector &v,short sx,short sy);
|
||||
|
||||
//code a point. fills in the p3_codes field of the point, and returns the codes
|
||||
ubyte g3_code_point(g3s_point *point);
|
||||
|
|
|
@ -319,13 +319,9 @@ void med_point_2_vec(grs_canvas *canv,vms_vector *v,short sx,short sy)
|
|||
|
||||
g3_start_frame();
|
||||
g3_set_view_matrix(&Viewer->pos,&Viewer->orient,Render_zoom);
|
||||
|
||||
g3_point_2_vec(v,sx,sy);
|
||||
|
||||
g3_point_2_vec(*v,sx,sy);
|
||||
g3_end_frame();
|
||||
}
|
||||
|
||||
|
||||
|
||||
void draw_world_from_game(void)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue