mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +00:00
Fix chasecam/awayviewmobj viewz offset to be consistent with non-skybox frame rendering
This commit is contained in:
parent
11d76a6562
commit
4d0f0230de
1 changed files with 4 additions and 4 deletions
|
@ -919,9 +919,9 @@ void R_SkyboxFrame(player_t *player)
|
|||
}
|
||||
}
|
||||
if (mh->skybox_scalez > 0)
|
||||
viewz += player->awayviewmobj->z / mh->skybox_scalez;
|
||||
viewz += (player->awayviewmobj->z + 20*FRACUNIT) / mh->skybox_scalez;
|
||||
else if (mh->skybox_scalez < 0)
|
||||
viewz += player->awayviewmobj->z * -mh->skybox_scalez;
|
||||
viewz += (player->awayviewmobj->z + 20*FRACUNIT) * -mh->skybox_scalez;
|
||||
}
|
||||
else if (thiscam->chase)
|
||||
{
|
||||
|
@ -966,9 +966,9 @@ void R_SkyboxFrame(player_t *player)
|
|||
}
|
||||
}
|
||||
if (mh->skybox_scalez > 0)
|
||||
viewz += thiscam->z / mh->skybox_scalez;
|
||||
viewz += (thiscam->z + (thiscam->height>>1)) / mh->skybox_scalez;
|
||||
else if (mh->skybox_scalez < 0)
|
||||
viewz += thiscam->z * -mh->skybox_scalez;
|
||||
viewz += (thiscam->z + (thiscam->height>>1)) * -mh->skybox_scalez;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue