fix K_GetScreenCoords y clipping
This commit is contained in:
1 parent
9b4354a057
commit
e7ff1d693b
1 file changed
+2
-2
+2
-2
@@ -9011,8 +9011,8 @@ static void K_GetScreenCoords(vector2_t *vec, player_t *player, camera_t *came,
|
||||
x = FixedMul(x, FINECOSINE((yang>>ANGLETOFINESHIFT) & FINEMASK)); // perspective
|
||||
y = -camaiming - FixedDiv(yang, distfact);
|
||||
|
||||
//if ((fixed_t)y < ANGLE_270 || (fixed_t)y > ANGLE_90) // clip points behind the camera
|
||||
// return;
|
||||
if (y < (fixed_t)ANGLE_270 || y > (fixed_t)ANGLE_90) // clip points behind the camera
|
||||
return;
|
||||
if (splitscreen == 1) // multiply by 1.25 for 2P splitscreen
|
||||
y = y + (y/4) ;
|
||||
if (srcflip) // flipcam
|
||||
|
||||
Reference in new issue
Block a user