Round computed horiz instead of potentially truncating

git-svn-id: https://svn.eduke32.com/eduke32@7345 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-02-21 00:58:33 +00:00
parent e513ad21d1
commit 5eb007396d

View file

@ -5405,7 +5405,7 @@ HORIZONLY:;
}
}
pPlayer->q16horiz = F16(100) + F16(128) * tanf(horizAngle * (fPI / 512.f));
pPlayer->q16horiz = F16(100) + Blrintf(F16(128) * tanf(horizAngle * (fPI / 512.f)));
if (pPlayer->return_to_center > 0 && !TEST_SYNC_KEY(playerBits, SK_LOOK_UP) && !TEST_SYNC_KEY(playerBits, SK_LOOK_DOWN))
{