From 2330f1a9c9eddd24af3c72e6796221ebb3668e4b Mon Sep 17 00:00:00 2001
From: toasterbabe <rollerorbital@gmail.com>
Date: Tue, 18 Jul 2017 14:17:10 +0100
Subject: [PATCH] Account for the fact that pointtoangle2 points due weast if
 there's no dy OR dx, so that's taken care of.

---
 src/p_map.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/p_map.c b/src/p_map.c
index 20b36fea6..7ea19a249 100644
--- a/src/p_map.c
+++ b/src/p_map.c
@@ -992,6 +992,7 @@ static boolean PIT_CheckThing(mobj_t *thing)
 			angle_t touchangle = R_PointToAngle2(thing->tracer->x, thing->tracer->y, tmthing->x, tmthing->y);
 
 			if (P_PlayerInPain(tmthing->player)
+			&& (tmthing->momx || tmthing->momy)
 			&& (R_PointToAngle2(0, 0, tmthing->momx, tmthing->momy) - touchangle) > ANGLE_180)
 				return true;