summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/bg_misc.c10
-rw-r--r--src/game/bg_pmove.c2
2 files changed, 5 insertions, 7 deletions
diff --git a/src/game/bg_misc.c b/src/game/bg_misc.c
index 259ace23..5adbcd33 100644
--- a/src/game/bg_misc.c
+++ b/src/game/bg_misc.c
@@ -2890,9 +2890,8 @@ void BG_PlayerStateToEntityState( playerState_t *ps, entityState_t *s, qboolean
s->pos.trType = TR_INTERPOLATE;
VectorCopy( ps->origin, s->pos.trBase );
- // Snapping player origins causes more problems than it solves
- //if( snap )
- // SnapVector( s->pos.trBase );
+ if( snap )
+ SnapVector( s->pos.trBase );
//set the trDelta for flag direction
VectorCopy( ps->velocity, s->pos.trDelta );
@@ -2995,9 +2994,8 @@ void BG_PlayerStateToEntityStateExtraPolate( playerState_t *ps, entityState_t *s
s->pos.trType = TR_LINEAR_STOP;
VectorCopy( ps->origin, s->pos.trBase );
- // Snapping player origins causes more problems than it solves
- //if( snap )
- // SnapVector( s->pos.trBase );
+ if( snap )
+ SnapVector( s->pos.trBase );
// set the trDelta for flag direction and linear prediction
VectorCopy( ps->velocity, s->pos.trDelta );
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c
index a8001ea9..b6c5fcd6 100644
--- a/src/game/bg_pmove.c
+++ b/src/game/bg_pmove.c
@@ -3796,7 +3796,7 @@ void PmoveSingle( pmove_t *pmove )
PM_WaterEvents( );
// snap some parts of playerstate to save network bandwidth
- SnapVector( pm->ps->velocity );
+ trap_SnapVector( pm->ps->velocity );
}