Skip to content

Commit d8ecf03

Browse files
committed
minor fix in DynamicGeometryClientUpdate
1 parent 059e602 commit d8ecf03

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

GeneralsMD/Code/GameEngine/Source/GameClient/Drawable/Update/DynamicGeometryClientUpdate.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,14 @@ void DynamicGeometryClientUpdate::clientUpdate( void )
169169
UnsignedInt now = TheGameLogic->getFrame();
170170

171171
Real alpha0, alpha1, scale0, scale1, progress;
172-
if (now < m_startFrame + data->m_midpointFrames) {
172+
if (now <= m_startFrame + data->m_midpointFrames) {
173173
alpha0 = data->m_alphaInitial;
174174
alpha1 = data->m_alphaMidpoint;
175175
scale0 = data->m_scaleInitial;
176176
scale1 = data->m_scaleMidpoint;
177177
progress = INT_TO_REAL(now - m_startFrame) / INT_TO_REAL(data->m_midpointFrames);
178178
}
179-
else if (now < m_startFrame + data->m_totalFrames) {
179+
else if (now <= m_startFrame + data->m_totalFrames) {
180180
alpha0 = data->m_alphaMidpoint;
181181
alpha1 = data->m_alphaFinal;
182182
scale0 = data->m_scaleMidpoint;
@@ -204,6 +204,9 @@ void DynamicGeometryClientUpdate::clientUpdate( void )
204204

205205
draw->setInstanceScale(currentScale * newScale);
206206

207+
DEBUG_LOG((">>> DGCU: currentScale = %f, newScale = %f, m_prevScale = %f, instanceScale = %f",
208+
currentScale, newScale, m_prevScale, currentScale * newScale));
209+
207210
m_prevScale = newScale;
208211

209212
// This doesn't work for additive!

0 commit comments

Comments
 (0)