- change for pyoff

This commit is contained in:
Christoph Oelckers 2022-09-14 19:30:20 +02:00
parent 2e947fded3
commit fdfd8c2a35
2 changed files with 4 additions and 6 deletions

View file

@ -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)

View file

@ -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))