mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-30 13:10:55 +00:00
This commit is contained in:
parent
9a1dd06776
commit
7ff4a9b1e7
1 changed files with 8 additions and 4 deletions
12
src/p_user.c
12
src/p_user.c
|
@ -9768,7 +9768,7 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
||||||
camorbit = cv_cam_orbit.value;
|
camorbit = cv_cam_orbit.value;
|
||||||
camrotate = cv_cam_rotate.value;
|
camrotate = cv_cam_rotate.value;
|
||||||
camdist = FixedMul(cv_cam_dist.value, mo->scale);
|
camdist = FixedMul(cv_cam_dist.value, mo->scale);
|
||||||
camheight = FixedMul(cv_cam_height.value, FixedMul(player->camerascale, mo->scale));
|
camheight = FixedMul(cv_cam_height.value, mo->scale);
|
||||||
}
|
}
|
||||||
else // Camera 2
|
else // Camera 2
|
||||||
{
|
{
|
||||||
|
@ -9777,9 +9777,12 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
||||||
camorbit = cv_cam2_orbit.value;
|
camorbit = cv_cam2_orbit.value;
|
||||||
camrotate = cv_cam2_rotate.value;
|
camrotate = cv_cam2_rotate.value;
|
||||||
camdist = FixedMul(cv_cam2_dist.value, mo->scale);
|
camdist = FixedMul(cv_cam2_dist.value, mo->scale);
|
||||||
camheight = FixedMul(cv_cam2_height.value, FixedMul(player->camerascale, mo->scale));
|
camheight = FixedMul(cv_cam2_height.value, mo->scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!(twodlevel || (mo->flags2 & MF2_TWOD)) && !(player->powers[pw_carry] == CR_NIGHTSMODE))
|
||||||
|
camheight = FixedMul(camheight, player->camerascale);
|
||||||
|
|
||||||
#ifdef REDSANALOG
|
#ifdef REDSANALOG
|
||||||
if (P_AnalogMove(player) && (player->cmd.buttons & (BT_CAMLEFT|BT_CAMRIGHT)) == (BT_CAMLEFT|BT_CAMRIGHT)) {
|
if (P_AnalogMove(player) && (player->cmd.buttons & (BT_CAMLEFT|BT_CAMRIGHT)) == (BT_CAMLEFT|BT_CAMRIGHT)) {
|
||||||
camstill = true;
|
camstill = true;
|
||||||
|
@ -9890,9 +9893,10 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
||||||
dist <<= 1;
|
dist <<= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!(twodlevel || (mo->flags2 & MF2_TWOD)) && !(player->powers[pw_carry] == CR_NIGHTSMODE))
|
||||||
|
dist = FixedMul(dist, player->camerascale);
|
||||||
|
|
||||||
|
checkdist = dist;
|
||||||
checkdist = (dist = FixedMul(dist, player->camerascale));
|
|
||||||
|
|
||||||
if (checkdist < 128*FRACUNIT)
|
if (checkdist < 128*FRACUNIT)
|
||||||
checkdist = 128*FRACUNIT;
|
checkdist = 128*FRACUNIT;
|
||||||
|
|
Loading…
Reference in a new issue