X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=meshqueue.c;h=52366e9ce19ded39ca56fc0052168ad27c79bc41;hb=09793c7b04deff7f9e39af50fc016751dcf6ec81;hp=fdbb60e9a7b5db9e0734ea72f1aa09f1a324e4dc;hpb=5715fdeb47caa02252ab9b6c0895310e43bea716;p=xonotic%2Fdarkplaces.git diff --git a/meshqueue.c b/meshqueue.c index fdbb60e9..52366e9c 100644 --- a/meshqueue.c +++ b/meshqueue.c @@ -112,7 +112,7 @@ void R_MeshQueue_AddTransparent(const vec3_t center, void (*callback)(const void mq->callback = callback; mq->data1 = data1; mq->data2 = data2; - mq->dist = DotProduct(center, vpn) - mqt_viewplanedist; + mq->dist = DotProduct(center, r_viewforward) - mqt_viewplanedist; mq->next = NULL; } @@ -167,7 +167,7 @@ void R_MeshQueue_BeginScene(void) mq_count = 0; mqt_count = 0; mq_listhead = NULL; - mqt_viewplanedist = DotProduct(r_origin, vpn); + mqt_viewplanedist = DotProduct(r_vieworigin, r_viewforward); } void R_MeshQueue_EndScene(void)