From 1057c0f7c1ce884d28ee1a516142abcb165f3edc Mon Sep 17 00:00:00 2001
From: MascaraSnake <jonassauer27@gmail.com>
Date: Sat, 16 May 2020 08:49:03 +0200
Subject: [PATCH] T_PolyObjWaypoint: If the polyobject reaches its target
 exactly, find next waypoint in the same tic

---
 src/p_polyobj.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/p_polyobj.c b/src/p_polyobj.c
index b81346ec3f..00c4a051af 100644
--- a/src/p_polyobj.c
+++ b/src/p_polyobj.c
@@ -1648,7 +1648,7 @@ void T_PolyObjWaypoint(polywaypoint_t *th)
 			dist = 1;
 
 		// Will the polyobject overshoot its target?
-		if (speed <= dist)
+		if (speed < dist)
 		{
 			// No. Move towards waypoint
 			fixed_t momx, momy, momz;
-- 
GitLab