mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
increase accuracy in linearskyangle calculation (#1347)
This commit is contained in:
parent
3584cb67bb
commit
c89085f0fa
@ -295,7 +295,7 @@ static void R_InitTextureMapping (void)
|
|||||||
;
|
;
|
||||||
xtoviewangle[x] = (i<<ANGLETOFINESHIFT)-ANG90;
|
xtoviewangle[x] = (i<<ANGLETOFINESHIFT)-ANG90;
|
||||||
// [FG] linear horizontal sky scrolling
|
// [FG] linear horizontal sky scrolling
|
||||||
linearskyangle[x] = ((viewwidth/2-x)*((video.unscaledw<<6)/viewwidth))*(ANG90/(NONWIDEWIDTH<<6));
|
linearskyangle[x] = ((viewwidth/2-x)*((video.unscaledw<<FRACBITS)/viewwidth))*(ANG90/(NONWIDEWIDTH<<FRACBITS));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Take out the fencepost cases from viewangletox.
|
// Take out the fencepost cases from viewangletox.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user