Use Q16.16 fixed point for player horiz

git-svn-id: https://svn.eduke32.com/eduke32@6724 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-03-07 04:21:05 +00:00
parent 7fa0abda26
commit 4d8bb170a3
25 changed files with 1140 additions and 96 deletions

View file

@ -4630,7 +4630,7 @@ void polymost_drawrooms()
gsinang2 = gsinang * (fviewingrange * (1.0f/65536.f));
ghalfx = (float)(xdimen>>1);
grhalfxdown10 = 1.f/(ghalfx*1024.f);
ghoriz = (float)globalhoriz;
ghoriz = fix16_to_float(qglobalhoriz);
gvisibility = ((float)globalvisibility)*FOGSCALE;