File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed
Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -214,13 +214,22 @@ bool R_UpdateCinematicDynLight( int videoFileIndex, CDynLight *dlight )
214214 cin->texture_set = true ;
215215 }
216216
217- // running think here because we're usually thinking with audio, but dlight doesn't have audio
217+ if ( !cin->sound_set )
218+ {
219+ CIN_SET_PARM ( cin->state ,
220+ AVI_ENTNUM, -1 ,
221+ AVI_VOLUME, 0 ,
222+ AVI_ATTN, ATTN_NORM,
223+ AVI_PARM_LAST );
224+ cin->sound_set = true ;
225+ }
218226
219- if ( !CIN_THINK ( cin->state )); // probably should be moved to some kind of global manager that will tick each frame
227+ // running think here because we're usually thinking with audio, but dlight doesn't have audio
228+ // probably should be moved to some kind of global manager that will tick each frame
229+ if ( !CIN_THINK ( cin->state ))
220230 {
221- if ( FBitSet ( RI->currententity ->curstate .iuser1 , CF_LOOPED_MOVIE ))
222- CIN_SET_PARM ( cin->state , AVI_REWIND, AVI_PARM_LAST );
223- else cin->finished = true ;
231+ // for now, video playback with dlights is always looped
232+ CIN_SET_PARM ( cin->state , AVI_REWIND, AVI_PARM_LAST );
224233 }
225234 }
226235 return true ;
You can’t perform that action at this time.
0 commit comments