diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_active.c | 6 |
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) |