mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- We don't need to keep the FloatBobOffsets[] verison of DoWaggle around.
SVN r3743 (trunk)
This commit is contained in:
parent
9b041cb431
commit
154e83331d
1 changed files with 0 additions and 5 deletions
|
@ -1300,12 +1300,7 @@ void DWaggleBase::DoWaggle (bool ceiling)
|
||||||
m_Accumulator += m_AccDelta;
|
m_Accumulator += m_AccDelta;
|
||||||
|
|
||||||
|
|
||||||
#if 1
|
|
||||||
fixed_t mag = finesine[(m_Accumulator>>9)&8191]*8;
|
fixed_t mag = finesine[(m_Accumulator>>9)&8191]*8;
|
||||||
#else
|
|
||||||
// Hexen used a 64 entry(!) sine table here which is not nearly precise enough for smooth movement
|
|
||||||
fixed_t mag = FloatBobOffsets[(m_Accumulator>>FRACBITS)&63];
|
|
||||||
#endif
|
|
||||||
|
|
||||||
dist = plane->d;
|
dist = plane->d;
|
||||||
plane->d = m_OriginalDist + plane->PointToDist (0, 0, FixedMul (mag, m_Scale));
|
plane->d = m_OriginalDist + plane->PointToDist (0, 0, FixedMul (mag, m_Scale));
|
||||||
|
|
Loading…
Reference in a new issue