From 656879b90bff5073c0e875235d58105b977d5eb2 Mon Sep 17 00:00:00 2001
From: James <jameshall.yahoosucks@gmail.com>
Date: Thu, 29 Aug 2019 15:56:46 -0400
Subject: [PATCH] Is this thing working?

---
 src/p_user.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/p_user.c b/src/p_user.c
index 35399c2b88..b93cf5b441 100644
--- a/src/p_user.c
+++ b/src/p_user.c
@@ -11576,9 +11576,21 @@ void P_PlayerAfterThink(player_t *player)
 #endif
 
 	if (splitscreen && player == &players[secondarydisplayplayer])
+	{
 		thiscam = &camera2;
+		if (P_AproxDistance(player->mo->x-thiscam->x-thiscam->momx, player->mo->y-thiscam->y-thiscam->momy) > ((player->speed+cv_cam2_dist.value)*2))
+		{
+			P_ResetCamera(player, thiscam);
+		}
+	}
 	else if (player == &players[displayplayer])
+	{
 		thiscam = &camera;
+		if (P_AproxDistance(player->mo->x-thiscam->x-thiscam->momx, player->mo->y-thiscam->y-thiscam->momy) > ((player->speed+cv_cam_dist.value)*2))
+		{
+			P_ResetCamera(player, thiscam);
+		}
+	}
 
 	if (player->playerstate == PST_DEAD)
 	{
-- 
GitLab