Skip to content

Commit 210e8f9

Browse files
committed
Replicate in Generals
1 parent 1d94bc4 commit 210e8f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Generals/Code/GameEngine/Source/GameClient/Drawable/Update/SwayClientUpdate.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
#include "GameClient/Drawable.h"
3434
#include "GameClient/Module/SwayClientUpdate.h"
35+
#include "Common/FramePacer.h"
3536
#include "Common/Player.h"
3637
#include "Common/PlayerList.h"
3738
#include "Common/ThingFactory.h"
@@ -114,7 +115,10 @@ void SwayClientUpdate::clientUpdate( void )
114115
return;
115116
}
116117

117-
m_curValue += m_curDelta;
118+
// TheSuperHackers @tweak The tree sway time step is now decoupled from the render update.
119+
const Real timeScale = TheFramePacer->getActualLogicTimeScaleOverFpsRatio();
120+
121+
m_curValue += m_curDelta * timeScale;
118122
if (m_curValue > 2*PI)
119123
m_curValue -= 2*PI;
120124
Real cosine = Cos(m_curValue);

0 commit comments

Comments
 (0)