mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Fix angular delta being wrong
This fixes animated characters being sometimes badly positioned, like actors in the plane in t1l1
This commit is contained in:
parent
31d254cb9f
commit
1b35d3ce05
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ float skelAnimDataGameHeader_s::GetAngularDeltaOverTime(float time1, float time2
|
|||
delta = 0;
|
||||
|
||||
if (frameNum1 < frameNum2) {
|
||||
delta = m_frame[frameNum1 % numFrames].angleDelta;
|
||||
delta = m_frame[frameNum1 % numFrames].angleDelta * d;
|
||||
|
||||
for (currFrame = frameNum1 + 1; currFrame < frameNum2; currFrame++) {
|
||||
delta += m_frame[currFrame % numFrames].angleDelta;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue