From aa20e304cffa98d3879ec83756b0e19d4547ca17 Mon Sep 17 00:00:00 2001
From: Louis-Antoine <lamr@free.fr>
Date: Sat, 9 Nov 2019 15:46:34 +0100
Subject: [PATCH] Fix silly typo :P

---
 src/g_game.c  | 2 +-
 src/p_inter.c | 2 +-
 src/p_map.c   | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/g_game.c b/src/g_game.c
index e2f43e4f26..a411c9658f 100644
--- a/src/g_game.c
+++ b/src/g_game.c
@@ -2803,7 +2803,7 @@ void G_AddPlayer(INT32 playernum)
 
 			countplayers++;
 
-			if (!players->exiting)
+			if (!players[i]->exiting)
 				notexiting++;
 
 			if (!(cv_coopstarposts.value && (gametype == GT_COOP) && (p->starpostnum < players[i].starpostnum)))
diff --git a/src/p_inter.c b/src/p_inter.c
index 9017f795d3..b4a16ba844 100644
--- a/src/p_inter.c
+++ b/src/p_inter.c
@@ -633,7 +633,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
 				if (!(netgame || multiplayer))
 				{
 					player->continues += 1;
-					players->gotcontinue = true;
+					player->gotcontinue = true;
 					if (P_IsLocalPlayer(player))
 						S_StartSound(NULL, sfx_s3kac);
 					else
diff --git a/src/p_map.c b/src/p_map.c
index 159489f708..bb56a50b16 100644
--- a/src/p_map.c
+++ b/src/p_map.c
@@ -540,7 +540,7 @@ static void P_DoFanAndGasJet(mobj_t *spring, mobj_t *object)
 
 static void P_DoPterabyteCarry(player_t *player, mobj_t *ptera)
 {
-	if (player->powers[pw_carry] && players->powers[pw_carry] != CR_ROLLOUT)
+	if (player->powers[pw_carry] && player->powers[pw_carry] != CR_ROLLOUT)
 		return;
 	if (ptera->extravalue1 != 1)
 		return; // Not swooping
@@ -1040,7 +1040,7 @@ static boolean PIT_CheckThing(mobj_t *thing)
 	{
 		if (tmthing->z > thing->z + thing->height || thing->z > tmthing->z + tmthing->height || !thing->health)
 			return true;
-		
+
 		if (thing == tmthing->tracer) // don't collide with rider
 			return true;
 
@@ -1054,7 +1054,7 @@ static boolean PIT_CheckThing(mobj_t *thing)
 			P_KillMobj(thing, tmthing, tmthing->tracer, 0);
 			return true;
 		}
-		
+
 		if (thing->type == tmthing->type // bounce against other rollout rocks
 			&& (tmthing->momx || tmthing->momy || thing->momx || thing->momy))
 		{
-- 
GitLab