summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-08-14 16:43:45 +0200
committerPaweł Redman <pawel.redman@gmail.com>2017-08-14 16:43:45 +0200
commit33bd0ab7d74f769f9e459c54802e8d029e83cc52 (patch)
tree2ab2790f04033fa07fb5f9e31a2f900047169c7b
parentd81ea595c37699807b9456d9b2e3998fa955236c (diff)
Trying a different way of calculating time_since.extrapol
-rw-r--r--src/game/g_active.c5
1 files changed, 2 insertions, 3 deletions
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);