Skip to content
Snippets Groups Projects

Remove "z" from "vertex_t"

Merged Nev3r requested to merge remove-vertex-z-mk2 into next

This removes vertex_t's z variable, as it is unnecessary. The only occurrence across the entire codebase for this variable was a hack used by the rope hang snapping behavior; this now uses vector3_t for the necessary calculations. P_ClosestPointOnLine3D() was also adapted to make use of vector3_t. (A similar function, FV3_ClosestPointOnLine(), is meant to have the same functionality, but the math there fails, possibly due to fixed point overflows, and therefore P_ClosestPointOnLine3D() was kept and adapted for this purpose.)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
Please register or sign in to reply
Loading