mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 18:42:26 +00:00
- change for pyoff
This commit is contained in:
parent
2e947fded3
commit
fdfd8c2a35
2 changed files with 4 additions and 6 deletions
|
@ -3084,10 +3084,8 @@ HORIZONLY:
|
|||
{
|
||||
p->pycount += 52;
|
||||
p->pycount &= 2047;
|
||||
p->pyoff = BobVal(p->pycount) * pact->int_xvel();
|
||||
|
||||
const double factor = 64. / 1596; // What is 1596?
|
||||
p->pyoff = abs(pact->int_xvel() * BobVal(p->pycount)) * factor;
|
||||
const double factor = 1024. / 1596; // What is 1596?
|
||||
p->pyoff = abs(pact->vel.X * BobVal(p->pycount)) * factor;
|
||||
}
|
||||
}
|
||||
else if (psectlotag != 2 && psectlotag != 1)
|
||||
|
|
|
@ -3874,8 +3874,8 @@ HORIZONLY:
|
|||
{
|
||||
p->pycount += 52;
|
||||
p->pycount &= 2047;
|
||||
const double factor = 64. / 1596; // What is 1596?
|
||||
p->pyoff = abs(pact->int_xvel() * BobVal(p->pycount)) * factor;
|
||||
const double factor = 1024. / 1596; // What is 1596?
|
||||
p->pyoff = abs(pact->vel.X * BobVal(p->pycount)) * factor;
|
||||
}
|
||||
}
|
||||
else if (psectlotag != ST_2_UNDERWATER && psectlotag != 1 && (!isRRRA() || !p->sea_sick_stat))
|
||||
|
|
Loading…
Reference in a new issue