diff options
author | Christopher Schwarz <lakitu7@gmail.com> | 2009-10-03 12:33:08 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:04 +0000 |
commit | 1b0208e3e8038a233fa87be16a79e861a0b66030 (patch) | |
tree | 1b3671ffef75dd66a137db50ab2a46c48b4c7158 /src/game | |
parent | f44fffabb6f7e8dcf701adbd6d379cd4620a7f37 (diff) |
* (bug 3734) Prevent exploitative use of roll axis by hacked clients (DevHC)
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/bg_pmove.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c index 9ba34a85..52afe2b2 100644 --- a/src/game/bg_pmove.c +++ b/src/game/bg_pmove.c @@ -3495,7 +3495,10 @@ void PM_UpdateViewAngles( playerState_t *ps, const usercmd_t *cmd ) // circularly clamp the angles with deltas for( i = 0; i < 3; i++ ) { - temp[ i ] = cmd->angles[ i ] + ps->delta_angles[ i ]; + if( i != ROLL ) + temp[ i ] = cmd->angles[ i ] + ps->delta_angles[ i ]; + else // currently, nothing can roll + temp[ i ] = ps->delta_angles[ i ]; if( i == PITCH ) { |