Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • EDuke32 EDuke32
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 106
    • Issues 106
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Richard Gobeille
  • EDuke32EDuke32
  • Merge requests
  • !10

rotscrnang/look_ang/return_to_center improvements

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Mitchell Richters requested to merge mjr4077au/eduke32:LookAngImprovements into master May 12, 2020
  • Overview 7
  • Commits 5
  • Changes 15

With all the Q16.16 and input updates, the look left/right buttons didn't receive any love.

Lastly, I had to move lastInputTicks to the playerdata_t struct. When first running P_GetInput(), the initial value of elapsedInputTicks is the actual value of timerGetHiTicks(), which is into the thousands. This high initial value was affecting how scaleAdjustmentToInterval() scales as it was taking an initial q16look_ang value of 512 and overflowing the fix16_t type, making it -32,768.

Please let me know if there's any changes that need to be made.

Edited May 14, 2020 by Mitchell Richters
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: LookAngImprovements