mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-19 15:11:04 +00:00
- WH: Use full precision horizon adjustment code inside processinput()
.
This commit is contained in:
parent
113e019821
commit
9343767fa2
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ int justplayed;
|
|||
int lopoint;
|
||||
int walktoggle;
|
||||
int runningtime;
|
||||
int oldhoriz;
|
||||
double oldhoriz;
|
||||
|
||||
|
||||
static int osdcmd_third_person_view(CCmdFuncPtr parm)
|
||||
|
@ -476,7 +476,7 @@ void processinput(int num) {
|
|||
dist >>= 2;
|
||||
|
||||
if (dist > 0 && feetoffground <= (plr.height << 8) || onsprite != -1) {
|
||||
oldhoriz = ((dist * bsin(PlayClock << 5)) >> 19) >> 2;
|
||||
oldhoriz = ((dist * bsinf(PlayClock << 5)) * (1. / 524288.)) * (1. / 4.);
|
||||
plr.horizon.addadjustment(oldhoriz);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue