From 769f41dba1bc2bb9d837a79415aa284cfc389d51 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Thu, 27 Mar 2025 00:13:21 -0400 Subject: [PATCH] Use 32 instead of maxplayers --- src/p_mobj.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/p_mobj.c b/src/p_mobj.c index 2c3efefd2..255c3624b 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -10847,7 +10847,9 @@ static boolean P_SpawnNonMobjMapThing(mapthing_t *mthing) #if MAXPLAYERS > 32 You should think about modifying the deathmatch starts to take full advantage of this! #endif - if (mthing->type <= MAXPLAYERS) // Player starts + UINT8 maxplayers = 32; + + if (mthing->type <= maxplayers) // Player starts { // save spots for respawning in network games if (!metalrecording) @@ -10866,7 +10868,7 @@ static boolean P_SpawnNonMobjMapThing(mapthing_t *mthing) } else if (mthing->type == 34) // Red CTF starts { - if (numredctfstarts < MAXPLAYERS) + if (numredctfstarts < maxplayers) { redctfstarts[numredctfstarts] = mthing; mthing->type = 0; @@ -10876,7 +10878,7 @@ static boolean P_SpawnNonMobjMapThing(mapthing_t *mthing) } else if (mthing->type == 35) // Blue CTF starts { - if (numbluectfstarts < MAXPLAYERS) + if (numbluectfstarts < maxplayers) { bluectfstarts[numbluectfstarts] = mthing; mthing->type = 0;