mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Merge branch 'signpost-cleanup' into 'master'
Signpost camera cleanup See merge request STJr/SRB2Internal!490
This commit is contained in:
commit
d7bdcb5f4c
1 changed files with 13 additions and 3 deletions
16
src/p_user.c
16
src/p_user.c
|
|
@ -9889,10 +9889,20 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
||||||
|
|
||||||
pviewheight = FixedMul(41*player->height/48, mo->scale);
|
pviewheight = FixedMul(41*player->height/48, mo->scale);
|
||||||
|
|
||||||
if (mo->eflags & MFE_VERTICALFLIP)
|
if (sign)
|
||||||
z = mo->z + mo->height - pviewheight - camheight + distz;
|
{
|
||||||
|
if (mo->eflags & MFE_VERTICALFLIP)
|
||||||
|
z = sign->ceilingz - pviewheight - camheight;
|
||||||
|
else
|
||||||
|
z = sign->floorz + pviewheight + camheight;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
z = mo->z + pviewheight + camheight + distz;
|
{
|
||||||
|
if (mo->eflags & MFE_VERTICALFLIP)
|
||||||
|
z = mo->z + mo->height - pviewheight - camheight + distz;
|
||||||
|
else
|
||||||
|
z = mo->z + pviewheight + camheight + distz;
|
||||||
|
}
|
||||||
|
|
||||||
// move camera down to move under lower ceilings
|
// move camera down to move under lower ceilings
|
||||||
newsubsec = R_IsPointInSubsector(((mo->x>>FRACBITS) + (thiscam->x>>FRACBITS))<<(FRACBITS-1), ((mo->y>>FRACBITS) + (thiscam->y>>FRACBITS))<<(FRACBITS-1));
|
newsubsec = R_IsPointInSubsector(((mo->x>>FRACBITS) + (thiscam->x>>FRACBITS))<<(FRACBITS-1), ((mo->y>>FRACBITS) + (thiscam->y>>FRACBITS))<<(FRACBITS-1));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue