diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-08-14 16:43:45 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-08-14 16:43:45 +0200 |
commit | 33bd0ab7d74f769f9e459c54802e8d029e83cc52 (patch) | |
tree | 2ab2790f04033fa07fb5f9e31a2f900047169c7b /src/game/g_active.c | |
parent | d81ea595c37699807b9456d9b2e3998fa955236c (diff) |
Trying a different way of calculating time_since.extrapol
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r-- | src/game/g_active.c | 5 |
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); |