Skip to content

Commit

Permalink
Fix PIT_ApplyTorque when line has no length
Browse files Browse the repository at this point in the history
Co-Authored-By: Ryan Krafnick <25529060+kraflab@users.noreply.github.com>
  • Loading branch information
JNechaevsky and kraflab committed Sep 15, 2023
1 parent 545cd19 commit cd0d7f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/doom/p_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ P_TryMove
static boolean PIT_ApplyTorque (line_t *ld)
{
if (ld->backsector && // If thing touches two-sided pivot linedef
(ld->dx || ld->dy) && // Torque is undefined if the line has no length
tmbbox[BOXRIGHT] > ld->bbox[BOXLEFT] &&
tmbbox[BOXLEFT] < ld->bbox[BOXRIGHT] &&
tmbbox[BOXTOP] > ld->bbox[BOXBOTTOM] &&
Expand Down

0 comments on commit cd0d7f8

Please sign in to comment.