Skip to content

Commit

Permalink
Revert "CGAME: Not a full fix but helps to lower the ws offset in CG_…
Browse files Browse the repository at this point in the history
…WorldToScreen"

This reverts commit d4208db.
  • Loading branch information
kai-li-wop committed Oct 31, 2023
1 parent b49fa94 commit e3edbe2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions code/cgame/cg_drawtools.c
Original file line number Diff line number Diff line change
Expand Up @@ -754,11 +754,6 @@ qboolean CG_WorldToScreen(const vec3_t point, float *x, float *y) {
vec3_t trans;
float z;

CG_SetScreenPlacement(PLACE_CENTER, PLACE_CENTER);

px = tan(cg.refdef.fov_x * M_PI / 360.0);
py = tan(cg.refdef.fov_y * M_PI / 360.0);

VectorSubtract(point, cg.refdef.vieworg, trans);

z = DotProduct(trans, cg.refdef.viewaxis[0]);
Expand Down

0 comments on commit e3edbe2

Please sign in to comment.