summaryrefslogtreecommitdiff
path: root/src/game/g_active.c
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-08-14 16:19:21 +0200
committerPaweł Redman <pawel.redman@gmail.com>2017-08-14 16:19:21 +0200
commit161df6fbab321a2cc78e0aacbe9d62104921e8c4 (patch)
tree4dea860b76f8e4005ad60f6a4bdd119e29e91b1a /src/game/g_active.c
parenta3ff3075710c7657dad4579c90fb451736421140 (diff)
Fix a few errors in player extrapolation.
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r--src/game/g_active.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c
index c1cc9f0..e1a7153 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -1634,14 +1634,14 @@ static void ClientExtrapolate(gentity_t *ent)
}
VectorSubtract(pos2->origin, pos1->origin, dxdt);
- VectorScale(dxdt, pos2->time - pos1->time, dxdt);
+ VectorScale(dxdt, 1.0f / time_delta, dxdt);
if (flags & 16)
time_since = level.time - pos2->client_time;
else
time_since = level.time - pos2->time;
- VectorMA(pos1->origin, time_delta, dxdt, ent->s.pos.trBase);
+ VectorMA(pos1->origin, time_since, dxdt, ent->s.pos.trBase);
if (g_debugExtrapolation.integer) {
Com_Printf("Extrapolated player %i:\n", (int)(ent - g_entities));