Skip to content
Snippets Groups Projects
Commit 923e9c4a authored by Lactozilla's avatar Lactozilla :speech_balloon:
Browse files

Simpler skyscale calculation

parent 36c0dbaf
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,5 @@ void R_SetupSkyDraw(void)
*/
void R_SetSkyScale(void)
{
fixed_t difference = vid.fdupx-(vid.dupx<<FRACBITS);
skyscale = FixedDiv(fovtan, vid.fdupx+difference);
skyscale = FixedDiv(fovtan, FixedDiv(vid.width*FRACUNIT, BASEVIDWIDTH*FRACUNIT));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment