diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/strife/p_user.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/strife/p_user.c b/src/strife/p_user.c index aa2ba430..a6d74b9f 100644 --- a/src/strife/p_user.c +++ b/src/strife/p_user.c @@ -248,8 +248,8 @@ void P_MovePlayer (player_t* player) if (cmd->buttons2 & BT2_LOOKUP) { player->pitch += LOOKPITCHAMOUNT; - if ((player->pitch + LOOKPITCHAMOUNT) > LOOKUPMAX || - (player->pitch + LOOKPITCHAMOUNT) < LOOKDOWNMAX) + if (player->pitch > LOOKUPMAX || + player->pitch < LOOKDOWNMAX) player->pitch -= LOOKPITCHAMOUNT; } else @@ -258,8 +258,8 @@ void P_MovePlayer (player_t* player) if (cmd->buttons2 & BT2_LOOKDOWN) { player->pitch -= LOOKPITCHAMOUNT; - if ((player->pitch - LOOKPITCHAMOUNT) > LOOKUPMAX || - (player->pitch - LOOKPITCHAMOUNT) < LOOKDOWNMAX) + if (player->pitch > LOOKUPMAX || + player->pitch < LOOKDOWNMAX) player->pitch += LOOKPITCHAMOUNT; } } |