summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-08-14 16:27:26 +0200
committerPaweł Redman <pawel.redman@gmail.com>2017-08-14 16:27:26 +0200
commit833daccc39c457664563f86604508eb4dd9ba003 (patch)
tree32fda90903f1a251dd323c48389ef888a92351cd
parent3689069f46ac92e8f1d02df7b7d122bd1e6d514f (diff)
That wasn't a sign error.
-rw-r--r--src/game/g_active.c6
1 files 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)