From 33bd0ab7d74f769f9e459c54802e8d029e83cc52 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Mon, 14 Aug 2017 16:43:45 +0200 Subject: Trying a different way of calculating time_since. --- src/game/g_active.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/game/g_active.c') diff --git a/src/game/g_active.c b/src/game/g_active.c index 326129b..b745b30 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -1636,10 +1636,9 @@ static void ClientExtrapolate(gentity_t *ent) VectorSubtract(pos2->origin, pos1->origin, dxdt); VectorScale(dxdt, 1.0f / time_delta, dxdt); + time_since = level.time - pos2->time; if (flags & 16) - time_since = level.time - pos2->client_time; - else - time_since = level.time - pos2->time; + time_since -= 50; VectorMA(pos2->origin, time_since, dxdt, ent->s.pos.trBase); -- cgit