mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 19:50:45 +00:00
Polymer: Fix smoothness of q16 mouse aiming
git-svn-id: https://svn.eduke32.com/eduke32@6765 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
607ddc45e0
commit
548d335316
1 changed files with 1 additions and 1 deletions
|
@ -1081,7 +1081,7 @@ void polymer_drawrooms(int32_t daposx, int32_t daposy, int32_t daposz, fix16_t d
|
||||||
gvisibility = ((float)globalvisibility)*FOGSCALE;
|
gvisibility = ((float)globalvisibility)*FOGSCALE;
|
||||||
|
|
||||||
ang = fix16_to_float(daang) * (360.f/2048.f);
|
ang = fix16_to_float(daang) * (360.f/2048.f);
|
||||||
horizang = (float)(-getangle(128, fix16_to_int(dahoriz)-100)) * (360.f/2048.f);
|
horizang = -(float)atan2(fix16_to_float(dahoriz)-100.f, 128.f) * (180.f*(float)M_1_PI);
|
||||||
tiltang = (gtang * 90.0f);
|
tiltang = (gtang * 90.0f);
|
||||||
|
|
||||||
pos[0] = (float)daposy;
|
pos[0] = (float)daposy;
|
||||||
|
|
Loading…
Reference in a new issue