Skip to content

Commit

Permalink
- fixed: Model rotation should use the time of the current frame's st…
Browse files Browse the repository at this point in the history
…art, not the time of the time of processing the particular actor.

Reading the time directly would result in different values for different viewpoints in a scene or for different objects in the same scene which is not how this is supposed to work.
  • Loading branch information
coelckers committed Nov 12, 2017
1 parent d9808e6 commit e50b012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gl/models/gl_models.cpp
Expand Up @@ -55,7 +55,7 @@

static inline float GetTimeFloat()
{
return (float)I_MSTime() * (float)TICRATE / 1000.0f;
return (float)gl_frameMS * (float)TICRATE / 1000.0f;
}

CVAR(Bool, gl_interpolate_model_frames, true, CVAR_ARCHIVE)
Expand Down

0 comments on commit e50b012

Please sign in to comment.