Splitscreen flatmap camera height 3/4 -> 13/16

This commit is contained in:
eebrozgi 2025-06-18 15:17:34 +03:00
parent 98bacdeafe
commit 21929bb111
2 changed files with 4 additions and 4 deletions

View file

@ -9664,9 +9664,9 @@ void P_DoQuakeOffset(UINT8 view, mappoint_t *viewPos, mappoint_t *offset)
maxShake = FixedMul(mapheaderinfo[gamemap-1]->cameraHeight, mapobjectscale) * 3 / 4;
// For 2p SPLITSCREEN SPECIFICALLY:
// The view is pretty narrow, so move it back 1/4th of the way towards default camera height.
// The view is pretty narrow, so move it back 3/16 of the way towards default camera height.
else
maxShake = FixedMul((mapheaderinfo[gamemap-1]->cameraHeight*5 + cv_cam_height[view].value)/6, mapobjectscale) * 3 / 4;
maxShake = FixedMul((mapheaderinfo[gamemap-1]->cameraHeight*13 + cv_cam_height[view].value*3)/16, mapobjectscale) * 3 / 4;
}
if (battle)

View file

@ -3383,10 +3383,10 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
camheight = FixedMul(mapheaderinfo[gamemap-1]->cameraHeight, cameraScale);
// For 2p SPLITSCREEN SPECIFICALLY:
// The view is pretty narrow, so move it back 1/4th of the way towards default camera height.
// The view is pretty narrow, so move it back 3/16 of the way towards default camera height.
else {
// CONS_Printf( "Camera values: %f / %f / %f \n", FixedToFloat(mapheaderinfo[gamemap-1]->cameraHeight), FixedToFloat(cv_cam_height[num].value), FixedToFloat(cameraScale) );
camheight = FixedMul((mapheaderinfo[gamemap-1]->cameraHeight*5 + cv_cam_height[num].value)/6, cameraScale);
camheight = FixedMul((mapheaderinfo[gamemap-1]->cameraHeight*13 + cv_cam_height[num].value*3)/16, cameraScale);
}
}