Skip to content

Commit 6667f80

Browse files
committed
fixed merge conflict
2 parents e101160 + 895452c commit 6667f80

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

sp/src/game/shared/env_projectedvideo.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,16 @@ void CEnvProjectedVideo::ClientThink()
259259

260260
RenderVideoToTexture();
261261

262+
float curTime = m_pVideoMaterial->GetCurrentVideoTime();
263+
//float duration = m_pVideoMaterial->GetVideoDuration();
264+
//ConMsg( "Time: %f / %f\n", curTime, duration );
265+
266+
const float EPS = 1e-4f;
267+
if (m_flLastVideoTime < 0.0f || fabsf(curTime - m_flLastVideoTime) > EPS)
268+
{
269+
m_flLastVideoTime = curTime;
270+
}
271+
262272
// Think at ~30fps instead of every engine tick to reduce load
263273
SetNextClientThink(gpGlobals->curtime + 0.03f);
264274
}

0 commit comments

Comments
 (0)