From e50b012c87e493b28f89bd05b7f7945d80a3cc62 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 12 Nov 2017 12:04:11 +0100 Subject: [PATCH] - fixed: Model rotation should use the time of the current frame's start, 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. --- src/gl/models/gl_models.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/models/gl_models.cpp b/src/gl/models/gl_models.cpp index 4b7054c2a..6ef0acbfc 100644 --- a/src/gl/models/gl_models.cpp +++ b/src/gl/models/gl_models.cpp @@ -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)