Skip to content

Commit

Permalink
Fixed a problem with player view turning. There were actually two sep…
Browse files Browse the repository at this point in the history
…arate issues, one that prevented turning left, and one that prevented over/underflow.
  • Loading branch information
skyjake committed Feb 7, 2009
1 parent 18c6cfa commit bccfd41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/plugins/common/src/p_user.c
Expand Up @@ -1798,8 +1798,8 @@ void P_PlayerThinkLookAround(player_t *player, timespan_t ticLength)
{
// Yaw.
P_GetControlState(playerNum, CTL_TURN, &vel, &off);
plr->mo->angle -= (angle_t) (FLT2FIX(turnSpeed * vel * ticLength) +
(offsetSensitivity * off) / 180 * ANGLE_180);
plr->mo->angle -= FLT2FIX(turnSpeed * vel * ticLength) +
(fixed_t)(offsetSensitivity * off / 180 * ANGLE_180);
}

// Look center requested?
Expand Down

0 comments on commit bccfd41

Please sign in to comment.