From 833daccc39c457664563f86604508eb4dd9ba003 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Mon, 14 Aug 2017 16:27:26 +0200 Subject: That wasn't a sign error. --- src/game/g_active.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/g_active.c b/src/game/g_active.c index 15f450a..0f9aaad 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -1608,10 +1608,10 @@ static void ClientExtrapolate(gentity_t *ent) return; pos1 = ent->client->savedPositions + - ent->client->savedPositionsCount % MAX_SAVED_POSITIONS; - pos2 = ent->client->savedPositions + (ent->client->savedPositionsCount + MAX_SAVED_POSITIONS - 1) % MAX_SAVED_POSITIONS; + pos2 = ent->client->savedPositions + + ent->client->savedPositionsCount % MAX_SAVED_POSITIONS; switch ((flags & (2 | 4 | 8)) >> 1) { default: @@ -1633,7 +1633,7 @@ static void ClientExtrapolate(gentity_t *ent) break; } - VectorSubtract(pos1->origin, pos2->origin, dxdt); + VectorSubtract(pos2->origin, pos1->origin, dxdt); VectorScale(dxdt, 1.0f / time_delta, dxdt); if (flags & 16) -- cgit